Previous Next

Sorts the rows in a rowset.

Returns the 'this' object.


.sort( options )

The optional options is an object that can have the following items:

target: String that determines where the sorting should take place. Possible values are 'client', 'server' or 'auto' (the default). The 'auto' value sorts on the server except when, for one of the columns, a user-defined sorting function has been specified. In that case the sorting is done on the client.