collection.sort

sortcollection.sort([options])
Force a collection to re-sort itself. You don't need to call this under normal circumstances, as a collection with a comparator will sort itself whenever a model is added. To disable sorting when adding a model, pass {sort: false} to add. Calling sort triggers a "sort" event on the collection.

doc_Backbone
2016-04-17 12:21:29
Comments
Leave a Comment

Please login to continue.