7 days of WordPress plugins, themes & templates - for free!* Unlimited asset downloads! Start 7-Day Free Trial
FREELessons: 25Length: 4.4 hours

Next lesson playing in 5 seconds

Cancel
  • Overview
  • Transcript

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.