type Comparable = string | number | undefined;
type SortItem = Record<string, Comparable>;
type SortField<T> = string | ((item: T) => Comparable);
/**
 * Order items by a certain key.
 * Supports decorator functions that allow complex picking of a comparison field.
 * Sorts in ascending order by default, but supports descending as well.
 * Stable sort - maintains original order of equal items.
 *
 * @param items Items to order.
 * @param field Field to order by.
 * @param order Sorting order, `asc` or `desc`.
 * @return Sorted items.
 */
export declare function orderBy<T extends SortItem>(items: T[], field: SortField<T>, order?: string): T[];
export {};
//# sourceMappingURL=sorting.d.ts.map