Special welcome gift. Get 50% off your first courses with code “AS50”. Find out more!
What is the syntax of the sort() method?
In MongoDB, the following syntax is used for sorting documents:
>db.COLLECTION_NAME.find().sort({KEY:1})
Your email address will not be published. Required fields are marked *
Remember Me
Not a member yet? Register now
Are you a member? Login now