groups sorting by creation date

This commit is contained in:
Julian Lam
2015-01-21 23:10:59 -05:00
parent c6ae6fae54
commit 3ade5da00f

View File

@@ -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) {