Skip to content

const stringOrder: Order<string>

Defined in: packages/heap/src/order.ts:81

A lexicographic order on string by UTF-16 code unit, which is exactly what JavaScript’s < and > operators compare. Code points above the BMP therefore order by their surrogate pairs, and combining marks compare independently of the characters they modify.