import type { Ord } from '../internal/types/alias.js'; /** * Returns a new array that is sorted by the given functions. * @param array The array to process. * @param fns The functions to sort by. * * @example * ```typescript * const objs = [{ a: 1, b: 4 }, { a: 3, b: 2 }, { a: 3, b: 1 }]; * sortBy(objs, (obj) => obj.b); // => [{ a: 3, b: 1 }, { a: 3, b: 2 }, { a: 1, b: 4 }] * sortBy(objs, prop('a'), prop('b')); // => [{ a: 1, b: 4 }, { a: 3, b: 1 }, { a: 3, b: 2 }] * ``` */ declare const sortBy: ( array: T[] | readonly T[], ...fns: ((value: T) => Ord)[] ) => T[]; export default sortBy; //# sourceMappingURL=sortBy.d.ts.map