@adaptabletools/adaptable-cjs
Version:
Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
9 lines (8 loc) • 481 B
TypeScript
/**
* This method is like `sortBy` except that it allows specifying the sort
* orders of the iteratees to sort by. If orders is unspecified, all values
* are sorted in ascending order. Otherwise, specify an order of "desc" for
* descending or "asc" for ascending sort order of corresponding values.
* Drop-in replacement for lodash/orderBy.
*/
export default function orderBy<T>(collection: T[], iteratees: ((item: T) => any)[] | string[], orders?: ('asc' | 'desc')[]): T[];