From the help file... Syntax sort(options) arg1 [arg2 arg3…] List the name of the series or groups by which you wish to sort the workfile. If you list two or more series, sort uses the values of the second series to resolve ties from the first series, and values of the third series to resolve ties f...