mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
fix sorting on users/map
This commit is contained in:
@@ -175,7 +175,7 @@ usersController.getMap = function(req, res, next) {
|
||||
});
|
||||
}, function(err, data) {
|
||||
data.sort(function(a, b) {
|
||||
return b.total - a.total;
|
||||
return b.users.length - a.users.length;
|
||||
});
|
||||
|
||||
data.forEach(function(room) {
|
||||
|
||||
Reference in New Issue
Block a user