sorts TreeGrid by the specified column
| col | number | the index of the column, by which the TreeGrid needs to be sorted |
| type | string | the sorting type ("str"|"int"|"date"), optional, by default the sorting type is taken from the column's setting |
| order | string | the sorting order ("asc"|"des"), optional, by default the sorting order is based on the previous sorting operation |
// sort the first column in the TreeGrid
myTreeGrid.sortRows(0);
// sort the first column in the TreeGrid by the "str" type in the "des" order
myTreeGrid.sortRows(0,"str","des");
Back to top