With Backbone.js I\'ve got a collection set up with a comparator function. It\'s nicely sorting the models, but I\'d like to reverse the order.
How can I sort the m
// For numbers, dates, and other number-like things var things = new Backbone.Collection; things.comparator = function (a, b) { return b - a }; // For strings things.comparator = function (a, b) { if (a === b) return 0; return a < b ? -1 : 1; };