Sort the data set Grain_Production. PROC SORT sorts the data, first by values of the variable Year, then by values of the variable Country, and finally by values of the variable Type.


proc sort data=Grain_Production;
   by year country type;
run;