I'm getting an error saying "ERROR: Data set WORK.MYCLASS is not sorted in ascending sequence. The current BY group has Sex = M and the next BY group has Sex = F ". What am I supposed to do? I don't understand the error message.
data myclass;
set sashelp.class; where Age between 13 and 16;
run;
proc sort data=myclass out=myclass2;
by sex;
run;
proc freq data=myclass;
by sex;
tables age;
run;