@ -26,9 +26,8 @@ module.exports = function(Groups) {
return group && !group.hidden;
});
groupsData.forEach(Groups.escapeGroupData);
next(null, groupsData);
Groups.sort(options.sort, groupsData, next);
},
}
async.apply(Groups.sort, options.sort)
], callback);
};