mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 17:05:51 +01:00
updated sorting logic (syntax error)
This commit is contained in:
@@ -1089,7 +1089,7 @@ var async = require('async'),
|
|||||||
case 'alpha': // intentional fall-through
|
case 'alpha': // intentional fall-through
|
||||||
default:
|
default:
|
||||||
groups = groups.sort(function(a, b) {
|
groups = groups.sort(function(a, b) {
|
||||||
return a.slug > b.slug;
|
return a.slug > b.slug ? 1 : -1;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user