mongodb :: MongoPipeline :: sort
https://docs.mongodb.com/manual/reference/operator/aggregation/sort/
Sorts all input documents and returns them to the pipeline in sorted order.
{ $sort: { <projection> } }
# Apply sort
#
# https://docs.mongodb.com/manual/reference/operator/aggregation/sort/
#
# Sorts all input documents and returns them to the pipeline in sorted order.
#
# ~~~json
# { $sort: { <projection> } }
# ~~~
fun sort(projection: JsonObject): MongoPipeline do return add_stage("sort", projection)
lib/mongodb/queries.nit:420,2--429,88