var instance = new GC.Spread.Sheets.Worksheet(name); var value; // Type: boolean value = instance.sortRange(row, column, rowCount, columnCount, byRows, sortInfo);
Parameters
- row
- The index of the starting row of the block of cells to sort.
- column
- The index of the starting column of the block of cells to sort.
- rowCount
- The number of rows in the block of cells.
- columnCount
- The number of columns in the block of cells.
- byRows
- Set to
trueto sort by rows, andfalseto sort by columns. - sortInfo
The following settings are available:
sortInfo.index number type The index of the column or row on which to sort. sortInfo.ascending boolean type Whether the sort order is ascending.
Return Value
true if the data is sorted successfully; otherwise, false.