Orders two strings by raw UTF-16 character codes, returning -1, 0, or 1 like a sort comparator.
Character-code order through < and > is identical across runtimes and locales, unlike
localeCompare. That keeps any hash or report derived from sorted account ids or keys
matching everywhere.
Orders two strings by raw UTF-16 code units, returning -1, 0, or 1. Code-unit order is identical on every runtime and machine, unlike a locale-aware comparison, and it is the one ordering the engines sort listings by — the conformance suite checks account listings against it — so results and any hash derived from sorted ids match across backends. A custom store sorts with this comparator wherever the Store port promises ordered results.