/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ /** * How a keyed source's rows sort (#880, #1182): by key, at the key's own * type. A row's id is its key's text — a String key itself, any other key its * `.east` printing — so a key that is not a String is read back from its id * and compared as what it is: a record keyed by number puts 9 before 10. * * @packageDocumentation */ import { type EastTypeValue } from "@elaraai/east"; /** * The order of a keyed source's row ids, at the key's own type. * * @param keyType - The source's key type, as the editing wire carries it * @returns A comparator over row ids: by key, with an id that names no key of the type after every key, by its text */ export declare function keyOrderOf(keyType: EastTypeValue): (a: string, b: string) => number; //# sourceMappingURL=key-order.d.ts.map