The BY statement first sorts the observations alphabetically by town, then by descending values of amount owed, then by ascending values of the account number.
   by town descending debt accountnumber;
run;