From 10936d9f41cff5c960675c9fb43f2969c43ad832 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Mon, 7 Aug 2017 18:23:44 +0700 Subject: [PATCH] Sort not by count --- services/actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/actions.js b/services/actions.js index 197c0513e..74c3bdad3 100644 --- a/services/actions.js +++ b/services/actions.js @@ -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}}, ]); }