Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongodb sort objectid

users.find({}).sort({ $natural: -1 })
 
PREVIOUS NEXT
Tagged: #mongodb #sort #objectid
ADD COMMENT
Topic
Name
7+6 =