hyy there, my collection goes like this and I am trying to get all comments list of particular blog_id in sorted order of date.
[ { \"_id\" : ObjectI
to do this, you can use method findById then sort your comments with method sort of mongoose.
findById
sort
With a example :
Blog.find({blog_id : YOUR_BLOG_ID}, 'comments') .sort('dt') .exec(function(err, docs){ console.log(docs); // do whatever you want with your docs });
Something like that should do the job.