From 07e26985042c39b197e1b20fecd9310eb097504d 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 --- js/forum/src/components/user-notifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/forum/src/components/user-notifications.js b/js/forum/src/components/user-notifications.js index 102bea186..4916f1f2e 100644 --- a/js/forum/src/components/user-notifications.js +++ b/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(); }) }