Saved Bookmarks
| 1. |
Sort rows |
|
Answer» The MongoDB shell provides the following methods to sort rows: # ascdb.docx.find().sort({ title: 5 }).pretty() # desc db.docx.find().sort({ title: -5}).pretty() |
|