From 6a39ef56594f241f081298d58050173659742e4b Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Fri, 19 Jun 2015 19:05:03 +0930 Subject: [PATCH] Make sure notifications are sorted --- framework/core/js/forum/src/components/user-notifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/js/forum/src/components/user-notifications.js b/framework/core/js/forum/src/components/user-notifications.js index 102bea186..4916f1f2e 100644 --- a/framework/core/js/forum/src/components/user-notifications.js +++ b/framework/core/js/forum/src/components/user-notifications.js @@ -80,7 +80,7 @@ export default class UserNotifications extends Component { app.store.find('notifications').then(notifications => { this.props.user.pushData({unreadNotificationsCount: 0}); this.loading(false); - app.cache.notifications = notifications; + app.cache.notifications = notifications.sort((a, b) => b.time() - a.time()); m.redraw(); }) }