Backbone is great but I continually found the default sorting method limited due to the following:
Disc 1, Disc 2, … Disc 10
would become Disc 1, Disc 10, Disc 2
With the help of Jim Palmer's naturalSort.js, I was able to integrate natrual sorting into Backbone.Collection
.
Backbone collections are automatically sorted and now, by simply adding sortType:"natural"
, your collections can be sorted naturally.