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 }, {}) }