WarUI

Locale collation for sorting

GRID-A24-F12P0beyond-baselinePlanned

Text sorting uses Intl.Collator for the active or column locale, so accents, case and alphabet order follow local rules. Numeric collation ('item2' before 'item10') and sensitivity are configurable. Collator instances are cached to keep large sorts fast.

Planned. This page shows the specification from issue #204. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A names column with accented, mixed-case and numeric-suffix values, sorted ascending, locale 'en-US'.

Expected behavior

The sort order changes visibly for each locale. With numeric on, 'item2' comes before 'item10'. Ordinal mode shows the naive code-point order for comparison.

Planned API surface

column.collation (Intl.CollatorOptions)column.collationLocalesortComparatorusage:'sort'

Acceptance criteria

  • Comparison uses Intl.Collator.compare from a cached instance. (pending)
  • Unicode extension keys (-u-co-) are respected. (pending)
  • The sort is stable when items compare as equal. (pending)
  • Sorting 100k rows completes within a documented time budget. (pending)