Skip to content

createComparator

createComparator(opts?): (a, b) => number

Defined in: core/src/utils/universalComparator.ts:12

Creates a reusable comparator function with baked-in locale, direction, and null-positioning configuration. Uses Intl.Collator internally for optimal performance when sorting large arrays.

ComparatorOptions = {}

(a, b) => number