Order of $sort and $limit aggregation

Note that your sort, skip and limit in

are done after the whole pipeline is completed.

If you want us to comment on your pipeline, please post your pipeline in the standard pipeline language rather than your own notation like: