I have a simple comparator function on a Backbone.js collection.
comparator: function (topic) {
return topic.get('lastReply');
},
This is the correct field to sort. It's a date field. I would like it to be sorted in desc order. Is there an easy way to reverse the order? Perhaps I should ditch this function and just sort the collection in prior to rendering it? Any ideas or tips are of course appreciated. Thanks all.