ssCore.ADO.setOrderBy

Provide the SQL ORDER BY clause that will sort your result set.


Availability:

First available in version 3.0 build 2039.


Input Parameters:

order - [Optional] - A list of fields to determine the sort order.


Output Parameters:

No output parameters.


Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.ADO.setOrderBy( paramsObject [, callbackParamsObject] [, errorParamsObject] );


Synchronous Mode:

When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.

var returnObject = ssCore.ADO.setOrderBy( paramsObject );


Notes:

If ADO.setOrderBy is not called before ADO.open, the default order will be used.

If you call ADO.setOrderBy, it must be done before the call to ADO.open or it has no effect.

                

Examples:

ssCore.ADO.setOrderBy({order:"LastName"});