The BY statement first sorts the observations alphabetically by town, then by company.
   by town company;
run;