This procedure puts in order the observations in a data set by the values of one or more character or numeric variables.
proc sort data=Crash;
by descending xx descending yy;
run;
by xx yy
descending
Uses variable xx to sort the dataset according to, And then according to yy
Sorts in a descending order. Default (if you remove this option) is sorting in ascending order