query.sort()

Sorts the query based on the column specified and the order criteria given. Modifies the original query object

query.sort( query, columnNameOrSortFunc [, direction ] )

Returns: Boolean

Argument Description
query
query, required

the query to sort

columnNameOrSortFunc
any, required

a list of names, a single column name or a function used as comparator.

direction
string, optional

a list of directions or a single direction definition (asc,desc), the list must have the same length as the columnName list. ONly used when the second argument defines a list of column names.

Examples

There are currently no examples for this function

See also