Optional
collatorAdditional options for sorting.
Optional
collatorsOverride the collators used.
Optional
customSort by a custom list.
Optional
dxfUsed with sortOn === cellColor or fontColor
Optional
fieldsAllows you to override individual sorts for each additional level. All sort criteria default to the sort criteria specified on the sort option.
Optional
hasIndicate if the sort has a header. If the sort has a head this will be ignored.
Optional
iconUsed with sortOn === Icon
Optional
iconUsed with sortOn === Icon
Optional
includeDetermine if sort should include values that are hidden.
Optional
offset0-based offset for the header based on orientation
Optional
orientationIndicate the orientation to sort.
Optional
reverseDetermines whether to reverse the default sort order.
The reverse
flag flips the sort order. When set to true
, the sort will
be performed in reverse order compared to the default (which is usually ascending).
This flag is data-type agnostic, meaning it will reverse the default order regardless of whether the data is numeric, alphabetic, or complex (e.g., booleans, lists).
Example usage:
const options: ISort.Options = {
reverse: true, // Sorts in descending order (for numbers/alphabetic)
};
Optional
sortOnly value is currently supported
Extends sort options to include options for sorting a range.
Remarks
This include orientation, hasHeader, and includeHidden.