Make sure notifications are sorted

This commit is contained in:
Toby Zerner 2015-06-19 19:05:03 +09:30
parent 24eabb1bb3
commit 6a39ef5659

View File

@ -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();
})
}