# stringOrder

> `const` **stringOrder**: [`Order`](/reference/knotkit/heap/type-aliases/order/)<`string`>

Defined in: [packages/heap/src/order.ts:81](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/heap/src/order.ts#L81)

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.
