30-50% off hundreds of digital assets! WordPress themes, video, music and more 30-50% Off Go to Sale
Lessons:25Length:4.4 hours

3.2 Sorting Collections

Backbone collections are ordered sets of models; but by default, that order is the order you added them in. If we want models to be sorted otherwise, we’ll have to write a comparator function.