Is there any difference between using the field ID or _ID from a MongoDB document?
I am asking this, because I usually use \"_id\", however I saw this sort({id:-1})
The _id field is the default field for Bson ObjectId's and it is,by default, indexed.
_id
_id and id are not the same. You may also choose to add a field called id if you want, but it will not be index unless you add an index.
id
It is just a typo in the docs.