Sort by two variables. The BY statement specifies that the observations should be first ordered alphabetically by town and then by company.
by town company; run;