From 2d2d00ccbf7ec607c0fe3739671b26a00953b0da Mon Sep 17 00:00:00 2001 From: reality Date: Fri, 29 Jan 2016 22:19:35 +0000 Subject: [PATCH] fix order --- 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 f5d90cb..a8b6a75 100644 --- a/modules/report/commands.js +++ b/modules/report/commands.js @@ -134,7 +134,7 @@ var commands = function(dbot) { event.reply(user.primaryNick + ' has been warned ' + warn + ' times, quieted ' + quiet + ' times, and reported ' + report + ' times.'); var sTimes = _.keys(items).sort(function(a, b) { - return parseInt(a.time) - parseInt(b.time); + return parseInt(a) - parseInt(b); }); if(sTimes.length < 70) {