mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
Fix #1925 document for {sort:false}
This commit is contained in:
@@ -1821,9 +1821,11 @@ alert(chapters.pluck('title'));
|
||||
<br />
|
||||
Force a collection to re-sort itself. You don't need to call this under
|
||||
normal circumstances, as a collection with a <a href="#Collection-comparator">comparator</a>
|
||||
will sort itself whenever a model is added. Calling <b>sort</b>
|
||||
triggers a <tt>"sort"</tt> event on the collection, unless silenced by passing
|
||||
<tt>{silent: true}</tt>
|
||||
will sort itself whenever a model is added. To disable sorting when adding
|
||||
a model, pass <tt>{sort: false}</tt> to <tt>add</tt>. Calling <b>sort</b>
|
||||
triggers a <tt>"sort"</tt> event on the collection, unless silenced by
|
||||
passing
|
||||
<tt>{silent: true}</tt>.
|
||||
</p>
|
||||
|
||||
<p id="Collection-pluck">
|
||||
|
||||
Reference in New Issue
Block a user