(a: string, b: string): number import {compareStrings} from 'svelte-docinfo/postprocess.js'; Case-insensitive string comparator for deterministic output ordering.
Case-folded comparison first (so Analyze and analyze sort together
instead of all uppercase before all lowercase), then a code-unit tiebreak —
so equal-ignoring-case strings still compare unequal and the result is an
exact total order. Unlike localeCompare (host-locale/ICU-dependent, so
byte-identical input can serialize in different orders on different
machines), both passes use Unicode default mappings only and are
environment-independent. All output ordering goes through this comparator —
never bare localeCompare or default Array.prototype.sort.
a
stringb
stringreturns
number