Fix groups test by ensuring we order by name

This commit is contained in:
Johannes Zellner
2020-06-04 14:03:06 +02:00
parent f275409ee8
commit 812bdcd462
2 changed files with 3 additions and 3 deletions

View File

@@ -76,7 +76,7 @@ function getWithMembers(groupId, callback) {
function getAll(callback) {
assert.strictEqual(typeof callback, 'function');
database.query('SELECT ' + GROUPS_FIELDS + ' FROM userGroups', function (error, results) {
database.query('SELECT ' + GROUPS_FIELDS + ' FROM userGroups ORDER BY name', function (error, results) {
if (error) return callback(new BoxError(BoxError.DATABASE_ERROR, error));
callback(null, results);