UNPKG

@zodash/sort-by

Version:

Multiple Field Sorter, support ASC + DESC

12 lines (7 loc) 390 B
# `@zodash/sort-by` > Creates an array of elements, sorted in ascending order by the results of running each element in a collection thru each iteratee. This method performs a stable sort, that is, it preserves the original sort order of equal elements. The iteratees are invoked with one argument: (value). ## Usage ```js import { sortBy } from '@zodash/sort-by'; // See __tests__ ```