From 8339c0b04db26888fe5532db37f18e8420aa3993 Mon Sep 17 00:00:00 2001 From: Jack Mallers Date: Mon, 11 Jun 2018 09:58:55 -0500 Subject: [PATCH] fix(daily activity sort): sort the activity within a day from new to old --- app/reducers/activity.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/reducers/activity.js b/app/reducers/activity.js index ff8ada94..9177994b 100644 --- a/app/reducers/activity.js +++ b/app/reducers/activity.js @@ -145,6 +145,9 @@ function groupData(data) { arr[title].push({ el }) + // sort the activity within a day new -> old + arr[title].sort((a, b) => returnTimestamp(b.el) - returnTimestamp(a.el)) + return arr }, {}) }