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, required

the query to sort

any, required

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

Alias: column_name, columnnames, columnname, name, names, column_names, sort, function, udf, sortFunction, sortFunc

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.

Alias: directions, dir


There are currently no examples for this function

See also