mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +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) {
|
}, function(err, data) {
|
||||||
data.sort(function(a, b) {
|
data.sort(function(a, b) {
|
||||||
return b.total - a.total;
|
return b.users.length - a.users.length;
|
||||||
});
|
});
|
||||||
|
|
||||||
data.forEach(function(room) {
|
data.forEach(function(room) {
|
||||||
|
|||||||
Reference in New Issue
Block a user