sorting - Fast, locale-aware name comparison helpers
String.prototype.localeCompare re-derives collation data on every call,
which is a measurable hot spot under Hermes when sorting large lists on each
render. These helpers share a single Intl.Collator, keeping the same
default-locale ordering while avoiding the per-call setup cost.
sorting - Fast, locale-aware name comparison helpers
String.prototype.localeComparere-derives collation data on every call, which is a measurable hot spot under Hermes when sorting large lists on each render. These helpers share a singleIntl.Collator, keeping the same default-locale ordering while avoiding the per-call setup cost.