Sort not by count

This commit is contained in:
Chi Vinh Le
2017-08-07 18:23:44 +07:00
parent 1d5f1e676f
commit 10936d9f41
+1 -1
View File
@@ -174,7 +174,7 @@ module.exports = class ActionsService {
{$match},
{$group},
{$project},
{$sort: {count: -1, action_type: 1, group_id: 1}},
{$sort: {action_type: 1, group_id: 1}},
]);
}