Development tools : Global functions : List and Table category : tableSort
  
tableSort
Description
Sorts a table according to the values in a specific column. Supported column types are: String, Numeric, Date, XMLGregorianCalendar, Duration.
If you want to sort the table with complex conditions, add a column to the table and fill the column with new cell values that are calculated by using expressions for every row. Then, sort the table according to the new column.
Usage
Client side: N
Server side: Y
Syntax
IndexedCollection tableSort(source, columnName, ascending)
Arguments
source
The table to be sorted. The type is IndexedCollection.
columnName
The name of the column to be used for sorting the table. The type is String.
ascending
The order in which the table is sorted. If true, the table is sorted in ascending order. Otherwise, it is sorted in descending order. The type is Boolean.
Return
Returns the table that is sorted according to the specified column.
Go up to
List and Table category