diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2014-08-29 15:17:37 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-08-29 15:17:37 +0200 |
commit | 0bb460c9b506593d04480c7b15278b2992aefa23 (patch) | |
tree | b6b0c2c30286cd538ecd55ec636cb4681e6ada9c /lib/private/user | |
parent | 033b0361edb206ac3c8303a0d8003fd6752d6f75 (diff) | |
download | nextcloud-server-0bb460c9b506593d04480c7b15278b2992aefa23.tar.gz nextcloud-server-0bb460c9b506593d04480c7b15278b2992aefa23.zip |
retrieve local users, groups and group members in a sorted way
Diffstat (limited to 'lib/private/user')
-rw-r--r-- | lib/private/user/database.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/user/database.php b/lib/private/user/database.php index e9844f0f79c..3a76adbe763 100644 --- a/lib/private/user/database.php +++ b/lib/private/user/database.php @@ -157,7 +157,7 @@ class OC_User_Database extends OC_User_Backend { $displayNames = array(); $query = OC_DB::prepare('SELECT `uid`, `displayname` FROM `*PREFIX*users`' . ' WHERE LOWER(`displayname`) LIKE LOWER(?) OR ' - . 'LOWER(`uid`) LIKE LOWER(?)', $limit, $offset); + . 'LOWER(`uid`) LIKE LOWER(?) ORDER BY `uid` ASC', $limit, $offset); $result = $query->execute(array('%' . $search . '%', '%' . $search . '%')); $users = array(); while ($row = $result->fetchRow()) { @@ -231,7 +231,7 @@ class OC_User_Database extends OC_User_Backend { * Get a list of all users. */ public function getUsers($search = '', $limit = null, $offset = null) { - $query = OC_DB::prepare('SELECT `uid` FROM `*PREFIX*users` WHERE LOWER(`uid`) LIKE LOWER(?)', $limit, $offset); + $query = OC_DB::prepare('SELECT `uid` FROM `*PREFIX*users` WHERE LOWER(`uid`) LIKE LOWER(?) ORDER BY `uid` ASC', $limit, $offset); $result = $query->execute(array('%' . $search . '%')); $users = array(); while ($row = $result->fetchRow()) { |