Closed
Description
Mark Paluch opened DATAMONGO-1553 and commented
The $sortByCount
stage is equivalent to the following $group + $sort
sequence:
{ $group: { _id: <expression>, count: { $sum: 1 } } },
{ $sort: { count: -1 } }
Referenced from: pull request #519, and commits 7123f84, 9a13a3f
1 votes, 2 watchers