orderBy

Modified on Thu, 27 Apr 2023

This function works like`sortBy()` function except that it allows specifying the sort orders of the iterates to sort by. If `orders` is unspecified, all values are sorted in ascending order.

Syntax

orderBy (collection, iteratees, orders)