Predefined sort comparator types supported by LyteNyte Grid.
"string" | "number" | "date" |
"string"
"number"
"date"
Definition for a user-defined custom sort comparator.
The column identifier associated with the sort. May be null if not defined.
null | string
null
string
The comparator function used for custom sorting.
Type | SortComparatorFn |
Discriminant for the custom sort type.
"\"custom\""
Optional configuration for the custom comparator.
any
A built-in date sort model definition.
Discriminant for the date sort type.
"\"date\""
Optional date comparator options.
Options used for date-based sorting.
Whether to include the time portion of the date during comparison.
boolean
A boolean indicating if null values should appear first in the sort order.
boolean
A function to convert a value to an ISO date string.
v | unknown |
string
A model item representing an active sort applied to the grid.
The column identifier associated with the sort. May be null if not defined.
null | string
null
string
Whether the sort direction is descending.
boolean
The sort type being applied.
Type | SortGridSorts |
A built-in numeric sort model definition.
Discriminant for the number sort type.
"\"number\""
Optional numeric comparator options.
Options for number-based sorting.
Whether to compare absolute values instead of raw numbers.
boolean
A boolean indicating if null values should appear first in the sort order.
boolean
A built-in string sort model definition.
Discriminant for the string sort type.
"\"string\""
Optional string comparator options.
Options used when sorting string values.
Whether string sorting should ignore case.
boolean
An optional Intl.Collator instance to use for string comparison.
Type | Collator |
Whether punctuation should be ignored during sorting.
boolean
The locale used for collation-based sorting.
string
A boolean indicating if null values should appear first in the sort order.
boolean
Whether leading/trailing whitespace should be trimmed before sorting.
boolean