Computer scienceFundamentalsSQL and DatabasesDBMSMongoDBOperations and operators

Sort, limit, and skip

Descending order

Report a typo

What number do you need to paste into this command to sort the collection in descending order?

db.staff.find().sort({salary: ... })
Enter a number
___

Create a free account to access the full topic