Home Search

DriveWorks Solo 22

Send Feedback


TableSort returns a table sorted on the given column.


TableSort([Table or Table Name], [Column], [Has Headers], [Sort Ascending])


Table or Table Name is a Table array (such as the data in a standard table, or the result of a QueryDataValues function).

Column is the column on which to base the sort. Number starting at 1 for the first column.

Has Headers is TRUE if the table has headers that shouldn't be included in the sort.

Sort Ascending is TRUE to to sort in ascending order, FALSE to sort in descending order.


ListAll(TableSort(DwTableName,2,FALSE), 3)Will list all data from the third column of the array returned by the SortTable function.

See also

How To: Work With Arrays