Skip to content

Glossary: MongoDB

$sort

An aggregation stage that orders documents, using 1 for ascending and -1 for descending. It works like the cursor's `.sort()`.

Where the book teaches it

Related terms

$limitStage