DataGrid.sort

Syntax

sort(sortInfo: Array, noReload: Boolean);

Parameters

sortInfo. Array of objects with sorting data. Objects must contain the fields: dir - determines order of table rows. Takes values: ASC - from the least to the greatest, DESC - from the greatest to the least; column - column name, by which rows are sorted.

noReload. Indicates whether table body is rerendered. If the parameter is set to True, table is rendered.

Description

The sort method sorts table rows.

Example

The example of method use is given in description of the DGRow.GlobalRowIndex property.

See also:

DataGrid