mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 08:55:47 +01:00
groups sorting by creation date
This commit is contained in:
@@ -920,6 +920,12 @@ var async = require('async'),
|
||||
});
|
||||
break;
|
||||
|
||||
case 'date':
|
||||
groups = groups.sort(function(a, b) {
|
||||
return a.createtime < b.createtime;
|
||||
});
|
||||
break;
|
||||
|
||||
case 'alpha': // intentional fall-through
|
||||
default:
|
||||
groups = groups.sort(function(a, b) {
|
||||
|
||||
Reference in New Issue
Block a user