backbone.search icon indicating copy to clipboard operation
backbone.search copied to clipboard

Don't set comparator on search result collection before adds

Open iros opened this issue 12 years ago • 0 comments

Backbone will resort the collection every time you add a model! This becomes incredibly inefficient. Move the comparator setting once the search collection is built and then perform the sort once. (Although again, I don't think you should set an attribute on it.)

iros avatar Oct 10 '12 21:10 iros