Sorts the specified datatable.

Syntax

Smartsite SXML CopyCode image Copy Code
datatable datatable.sort(datatable dataTable, string sortBy)

Parameters

Name Data Type Description
dataTable DataTable The datatable.
sortBy String The column names whereby the datatable is sorted. This value can be a comma separated list of column names.

Return Value

Data Type Description
DataTable The sorted datatable.

Expand image Example

SXML