Sorter
The Sorter type represents a function that compares two SortKey values.
(
sortKey1: SortKey,
sortKey2: SortKey,
): number| Type | Description | |
|---|---|---|
sortKey1 | SortKey | The first item of the pair to compare. |
sortKey2 | SortKey | The second item of the pair to compare. |
| returns | number | A number indicating how to sort the pair. |
A Sorter is provided to methods that sort Row Ids when the default alphanumeric ordering is not appropriate. Return a positive or negative number to indicate which of the two SortKey values should be ordered first.
Since
v9.1.0