So we have the
$sortByCount stage in the aggregation pipeline. This will group according to a
facet or field and will also count and sort accordingly. I just wanted to know, what advantages this provides over
$group also provides a functionality closely similar to this.