mirror of
https://github.com/wassname/talk.git
synced 2026-07-19 11:28:50 +08:00
Sort aggregation
This commit is contained in:
+2
-1
@@ -173,7 +173,8 @@ module.exports = class ActionsService {
|
||||
return ActionModel.aggregate([
|
||||
{$match},
|
||||
{$group},
|
||||
{$project}
|
||||
{$project},
|
||||
{$sort: {count: -1, action_type: 1, group_id: 1}},
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user