# Shaping the Report: $project, $set, $sort and $limit

Four stages turn a pipeline's correct answer into a report someone can read, $sort and $limit for the top few, $project to choose and rename fields, and $set to compute new ones with expressions such as $multiply and $round, and the order of the stages changes what comes out.

![Cheat sheet: Shaping the Report: $project, $set, $sort and $limit](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/a75bdb731c224d69b4486e85b125a4af.webp)

- Category: MongoDB
- Level: Journeyman
- Tags: $project, $set and $addFields, Aggregation Expression, mongodb, sort, limit and skip
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/mongodb-aggregation-project-sort-limit-cheat-sheet
