Robuta

https://mongodb.github.io/mongo-csharp-driver/2.12/apidocs/html/M_MongoDB_Driver_AggregateFluentBase_1_SortByCount__1.htm AggregateFluentBase(TResult).SortByCount(TId) Method Appends a sortByCount stage to the pipeline. tidmethod