Format: So[rt] [d[own]] [column]The SORT command arranges all the rows in order according to the values in the column specified. If the keyword DOWN (which can be abbreviated down to D) is given they are arranged in descending order, otherwise ascending.
Examples:
Enter command - SORT C3 Enter command - s d AGEExample output:
Sorted into ascending order using C3 (SEX)Comments
Only one column can be sorted at a time. If you want to sort rows into order according to two variables you must first produce a dummy variable from the first two. For example if the first column contains the month and the second column the day of the month, you could not sort the rows into date order by sorting first on c2 and then on c1, since the second sort would disturb the results of the first. Instead you would need to produce a combined date in a third column first by following this procedure:
Enter command - DERIVE C3 C1*100+C2 Enter command - SORT C3