Concept Flow - sort method ascending and descending
Start with collection
Apply sort method
Specify field and order
MongoDB sorts documents
Return sorted documents
The sort method takes a field and order (1 for ascending, -1 for descending) and returns documents sorted accordingly.