I am using MongoDB with Node.JS. I have a collection which contains a date and other rows. The date is a JavaScript Date object.
Date
How can I sort this col
With mongoose it's as simple as:
collection.find().sort('-date').exec(function(err, collectionItems) { // here's your code })