show old groups first

v1.18.x
Barış Soner Uşaklı 8 years ago
parent 8d8f0a391f
commit 78005d6124

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

Loading…
Cancel
Save