We have a collection named employees. A few employees have the same names. So we want to sort all the documents by name and then by the salary. Records should be sorted in ascending (alphabetical) order.
Sort, limit, and skip
Employees
Report a typo
Enter a short text
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.