Sort() rearranges the rows of a table according to the values of one or more columns, either replacing the current table or creating a new table with the results. Specify ascending or descending sort for each By column.
The following example creates a new data table based on Big Class.jmp that sorts the data in descending order by age and by name:
sortedDt = dt << Sort(
output table name( "Sorted age name" ) );