Optional
caseOptional
collatorOptions to pass to Intl.Collator for string comparisons. This overrides the caseSensitive options.
Optional
comparator?: ((a, b) => number)A custom comparator to use. This overrides all other options except reverse.
Optional
reverse?: booleanReverse the sort order.
Sort case sensitively.