show old groups first

This commit is contained in:
Barış Soner Uşaklı
2017-06-22 18:12:35 -04:00
parent 8d8f0a391f
commit 78005d6124

View File

@@ -16,7 +16,7 @@ groupsController.list = function (req, res, next) {
async.waterfall([
function (next) {
db.getSortedSetRevRange('groups:createtime', 0, -1, next);
db.getSortedSetRange('groups:createtime', 0, -1, next);
},
function (groupNames, next) {
groupNames = groupNames.filter(function (name) {