declare global { export interface Array { /** * Sorts the array in place by `field`. Direction defaults to `'asc'`. * Mutates and returns the array (matches `Array.prototype.sort`). */ sortBy: (field: keyof T, direction?: 'asc' | 'desc') => T[]; } } export declare const compareBy: (entity1: T, entity2: T, field: K, direction: "asc" | "desc") => 1 | 0 | -1; //# sourceMappingURL=sort-by.d.ts.map