this.col = Backbone.Collection.extend({
model: M,
comparator: function(item) {
return item.get("level");
}
});
This above code sorts items by level. I want to sort by level, then by title. Can I do that? Thanks.
question from:https://stackoverflow.com/questions/8921667/backbone-js-collection-comparator-sort-by-multiple-fields