PROC SORT sorts the data set PHONES by LAST_NAME and replaces the original data set with the sorted one.
proc sort data=phones;
by last_name;
run;