Skip to content

Commit

Permalink
clarify that sortBy is ascending.
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Jan 23, 2012
1 parent 5ed8b6e commit d959c01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,8 @@ <h2 id="collections">Collection Functions (Arrays or Objects)</h2>
<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); });
Expand Down

0 comments on commit d959c01

Please sign in to comment.