Description
https://mongodb.github.io/node-mongodb-native/markdown-docs/queries.html
At Sorting:
Two options are given : if 2+ arguments, then you can write 'asc' or 'desc', with a single ascending argument, you don't need anything but the tag.
But what about a single descending argument ? I found that with arrays I can't use 'asc' and 'desc', it's not processed and always acts as 'asc'. I found something that worked :
{ "sort": { "name" : -1 }};
I don't know exactly how to edit the docs, but I didn't want this to be lost. Sorting anything by newest is pretty trivial. Also there's a type on the line right under "Sorting", "acieved" instead of "achieved"