From 0e47ce22cea8125118446380e92dced54637159d Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 19 Jan 2015 22:08:54 +0000 Subject: [PATCH] sort is one of the few functions afforded to the array object naturally --- modules/report/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/report/commands.js b/modules/report/commands.js index 38142d3..3f2b79c 100644 --- a/modules/report/commands.js +++ b/modules/report/commands.js @@ -113,7 +113,7 @@ var commands = function(dbot) { if(quiet != 0 || warn != 0 || report != 0) { event.reply(user.primaryNick + ' has been warned ' + warn + ' times, quieted ' + quiet + ' times, and reported ' + report + ' times.'); - _.each(_.sort(_.keys(items)), function(time) { + _.each(_.keys(items).sort(), function(time) { event.reply('[' + moment(new Date(time)).format('dd/mm/YYYY') + '] ' + items[time]); });