/** * Order two strings by Unicode code point, the way Python's `sorted` does. * * JavaScript's default comparator compares UTF-16 code *units*. Astral * characters (U+10000 and up) are stored as a surrogate pair in * 0xD800-0xDFFF, so they sort before every BMP character from U+E000 up — * while Python puts them after. A directory holding `\u{1F600}.txt` and a * U+E000 name therefore lists in opposite orders across the two trees, and * any listing compared against a shared integ truth file diverges. See * issue #370. * * There is no Python counterpart because `sorted()` is already code-point * ordered; this is the module that makes TypeScript agree with it. Use it * for anything a user can see the order of. eslint bans the zero-argument * default comparator outright so it cannot creep back. */ export declare function compareCodePoints(a: string, b: string): number; /** * Sort a copy of `items` by code point. * * The copy is the point: sorting in place mutates, and most callers here * are handing back a list they do not own. */ export declare function sortedByCodePoints(items: Iterable): string[]; //# sourceMappingURL=sort.d.ts.map