//#region src/collection/sortBy.d.ts /** * Creates an array of elements, sorted in ascending order by the results of running each element thru iteratee * @param collection - The collection to iterate over * @param iteratees - The iteratees to sort by * @returns Returns the new sorted array * @example * const users = [ * { name: 'John', age: 30 }, * { name: 'Jane', age: 25 } * ]; * sortBy(users, 'age'); * // => [{name: 'Jane', age: 25}, {name: 'John', age: 30}] */ declare function sortBy(collection: T[], iteratees: ((item: T) => unknown) | string | Array<((item: T) => unknown) | string>): T[]; //#endregion export { sortBy }; //# sourceMappingURL=sortBy.d.cts.map