Skip to content

Commit

Permalink
Document sortBy stability
Browse files Browse the repository at this point in the history
  • Loading branch information
JensRantil committed Jun 19, 2013
1 parent 3cfdd41 commit 74386f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,8 @@ <h2 id="collections">Collection Functions (Arrays or Objects)</h2>
Returns a sorted copy of <b>list</b>, ranked in ascending order by the
results of running each value through <b>iterator</b>. Iterator may
also be the string name of the property to sort by (eg. <tt>length</tt>).
The sort algorithm used is stable. That is, order is preserved for equal
iterator results.
</p>
<pre>
_.sortBy([1, 2, 3, 4, 5, 6], function(num){ return Math.sin(num); });
Expand Down

0 comments on commit 74386f0

Please sign in to comment.