Optionallocales: LocalesArgumentLocales whose collation rules apply (defaults to the runtime locale)
Optionaloptions: CollatorOptionsCollation options, such as case sensitivity or numeric ordering of digit sequences
A comparator ordering strings by the collation rules of locales
Creates a comparator that orders strings according to locale-sensitive collation rules.
Null and undefined values are treated as less than any string and equal to each other, as in ascending.