Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
3 lines
277 B
JavaScript
3 lines
277 B
JavaScript
// Alphabetical, ignoring case and accents; two names that differ only in case fall back to the exact text so the order never shuffles.
|
|
export const alpha = (a, b) => String(a).localeCompare(String(b), undefined, { sensitivity: "base" }) || String(a).localeCompare(String(b));
|