mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 23:37:49 +00:00
clarify that sortBy is ascending.
This commit is contained in:
@@ -521,8 +521,8 @@ _.min(numbers);
|
||||
<p id="sortBy">
|
||||
<b class="header">sortBy</b><code>_.sortBy(list, iterator, [context])</code>
|
||||
<br />
|
||||
Returns a sorted copy of <b>list</b>, ranked by the results of running
|
||||
each value through <b>iterator</b>.
|
||||
Returns a sorted copy of <b>list</b>, ranked in ascending order by the
|
||||
results of running each value through <b>iterator</b>.
|
||||
</p>
|
||||
<pre>
|
||||
_.sortBy([1, 2, 3, 4, 5, 6], function(num){ return Math.sin(num); });
|
||||
|
||||
Reference in New Issue
Block a user