SORT-COLUMN (numeric)

Allows you to programmatically sort the specified column in ascending or descending order (as if the column header has been clicked in the user interface). Modify the column indicated by SORT-COLUMN to a positive integer to sort the column in ascending order, and modify it to a negative integer to sort the column in descending order. You can also inquire the property to ascertain the current sort order: positive integer is ascending, negative integer is descending, and zero indicates no sort order in effect.

The following example sorts the column indicated by sort-column, in descending order:

modify grid-1 sort-column = -5