Skip to main content
Version: 10.1

Rowset.sort()

note

This article is about the sort() function of the Rowset object.

Rowset.sort()

Sorts the rows in a rowset.

Returns the 'this' object.

Syntax

*row-set*.sort( *target* )

*target* ::= { client | server | auto }

The optional target is a 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.

Example

$.udb('EMP').rowset('current').sort();