diff --git a/modules/report/pages.js b/modules/report/pages.js index f85bf1f..45aaecd 100644 --- a/modules/report/pages.js +++ b/modules/report/pages.js @@ -26,7 +26,7 @@ var pages = function(dbot) { res.render('missing_notifies', { 'name': dbot.config.name, 'user': user.primaryNick, - 'notifies': notifies + 'notifies': _.sortBy(notifies, 'time') }); if(_.has(dbot.modules, 'log')) { @@ -49,7 +49,7 @@ var pages = function(dbot) { res.render('notifies', { 'name': dbot.config.name, 'server': server, - 'notifies': notifies + 'notifies': _.sortBy(notifies, 'time') }); }); } diff --git a/views/report/notifies.jade b/views/report/notifies.jade index 1b4c04d..b88119e 100644 --- a/views/report/notifies.jade +++ b/views/report/notifies.jade @@ -13,7 +13,7 @@ block content th User th Message tbody - for notify, key in notifies + for notify in notifies tr td #{new Date(notify.time)} td #{notify.channel}