In MongoDB, the sort() method allows you to sort the result from a query.
The syntax to use the sort() method is:
```
db.collection_name.find().sort({field1: sorting_order, …})
```
In the sort method you pass a document that contains the field(s) to sort by and the direction for sorting. 1 is used for ascending order while -1 is used for descending order.
For example:
Ascending order sort:
```
db.users.find().sort({age: 1})
```
This will return all documents in the users collection sorted by age in ascending order.
Descending order sort:
```
db.users.find().sort({age: -1})
```
This will return all documents in the users collection sorted by age in descending order.
Sort by multiple fields:
If you want to sort by more than one field, you can add those fields in the sort method. For example:
```
db.users.find().sort({age: 1, name: -1})
```
This will return all documents in the users collection sorted by age in ascending order, and if there are documents with the same age, those documents will be sorted by name in descending order.