MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / compareBasesOrder

Function compareBasesOrder

tests/unit/utils/sortOrderUtils.test.ts:17–20  ·  view source on GitHub ↗
(left: string, right: string)

Source from the content-addressed store, hash-verified

15const alphaRankPattern = /^tn[a-z]{10}$/;
16
17function compareBasesOrder(left: string, right: string): number {
18 const collated = basesSortCollator.compare(left, right);
19 return collated !== 0 ? collated : left.localeCompare(right);
20}
21
22function expectAscendingDisplayOrder(ranks: string[]): void {
23 for (let index = 1; index < ranks.length; index++) {

Callers 3

Calls

no outgoing calls

Tested by

no test coverage detected