The collection to iterate over.
Optional iteratees: Many<ListIterator<T, unknown>>The iteratees to sort by.
Optional orders: Many<boolean | "asc" | "desc">The sort orders of iteratees.
@param- {Object} [guard] Enables use as an iteratee for functions like _.reduce.
Returns the new sorted array.
_.orderBy
Optional iteratees: Many<ListIteratee<T>>Optional orders: Many<boolean | "asc" | "desc">_.orderBy
Optional iteratees: Many<ObjectIterator<T, unknown>>Optional orders: Many<boolean | "asc" | "desc">_.orderBy
Optional iteratees: Many<ObjectIteratee<T>>Optional orders: Many<boolean | "asc" | "desc">Generated using TypeDoc
This method is like
_.sortByexcept that it allows specifying the sort orders of the iteratees to sort by. Ifordersis 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.Example