Sort the data set. PROC SORT sorts the observations by Sale_Type.


proc sort data=exprev;
   by sale_type;
run;