Returns a comparator that sorts strings alphabetically using localeCompare. The collator includes many options to sort numerically, to ignore the case, to ignore accents, etc…
localeCompare
The locale of the strings
The sort direction
Optional
collator options
Returns a comparator that sorts strings alphabetically using
localeCompare
. The collator includes many options to sort numerically, to ignore the case, to ignore accents, etc…