I find no doc for the sort modifier. The only insight is in the unit tests:
spec.lib.query.js#L12

writer.limit(5).sort(['test', 1]).group('name')

But it doesn’t work for me:

Post.find().sort(['updatedAt', 1]);

20 Answers
20

Leave a Reply

Your email address will not be published. Required fields are marked *