import { SortDirectionType } from '../constants'; export type SortableWell = Record & { id: number; }; /** * Sorts wells by a column, leaving the input array untouched. * * Two rules, both of which the table relies on: * - wells with no value sink to the bottom in *both* directions, so sorting never * surfaces gaps ahead of data; * - anything that is not strictly greater or smaller — equal values, arrays with the * same contents, coercively equal values of mismatched types (`5` and `"5"`) — is a * tie and returns 0, so the stable sort keeps the incoming order instead of * shuffling those rows on every re-sort. * * Values within a column are assumed to share one type (numbers, strings, or string * arrays). Mixing numbers with strings in the same column is not supported: the * numeric and textual branches of `compareValues` use different orderings, so a mixed * column has no consistent order to sort by. */ export declare const sortWellsBy: (wells: SortableWell[], sortByKey: string, sortDir: SortDirectionType) => SortableWell[]; //# sourceMappingURL=sortWellsBy.d.ts.map