Optional
collatorAdditional options for sorting.
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
iconUsed with sortOn === Icon
Optional
iconUsed with sortOn === Icon
Optional
offset0-based offset for the header based on orientation
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
Options for sorting with a filter.
Remarks
This is very similar to a range sort but with a few less options.