SSpread.Sort Method
| Explanation | Sorts the specified data. | |||||||||
| Call format | Sort(col, row, col2, row2, sortby [, sortkeys, sortkeyorders]) | |||||||||
| Return value | $TRUE if successful, $FALSE otherwise | |||||||||
| Arguments | col | First column number in the sort range | ||||||||
| row | Row number at the beginning of the sort range | |||||||||
| col2 | Last column number in the sort range | |||||||||
| row2 | Last row number in the sort range | |||||||||
| sortby | Sort type Specify the following values.
| |||||||||
| sortkeys | An array object (optional) that indicates the column / row number to be used as the sort key. | |||||||||
| sortkeyorders | An array object that indicates the sort order (optional) Specify the following values.
For sortkeys and sortkeyorders, specify an Array Object that has the information required for sorting. The smaller the index of the array, the higher the priority of the sort keys. By making the indexes the same, the combination of the row / column number can be set to be the key for sorting and the sorting order (ascending / descending order). If sortkeys and sortkeyorders are omitted, the values of the SortKey property and SortKeyOrder property are used. | |||||||||
| Exception | EXT-1 | The argument of Sort is invalid | ||||||||
| Example of use | | |||||||||
| Related item | SortKey, SortKeyOrder properties | |||||||||