From f49fc234c156c3923161d0c85b2b97f7a9e24246 Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Fri, 21 Jun 2013 16:46:31 -0400 Subject: [PATCH] fixed recent replies order. closes #27 --- src/categories.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/categories.js b/src/categories.js index 35b980b215..bdc954030b 100644 --- a/src/categories.js +++ b/src/categories.js @@ -268,7 +268,7 @@ var RDB = require('./redis.js'), } Categories.getRecentReplies = function(cid, callback) { - RDB.zrange('categories:recent_posts:cid:' + cid, 0, 4, function(err, pids) { + RDB.zrevrange('categories:recent_posts:cid:' + cid, 0, 4, function(err, pids) { if (pids.length == 0) { callback(false); return;