[SOLVED] How to sort a collection in Backbone on two values / attributes
Streams.Collection = Backbone.Collection.extend({
model: Streams.Model,
url: "/apis/streams",
comparator: function(model) {
return [model.get("sapDiscovered") === "true", model.get("name").toLowerCase()];
}
});
Recent Comments