From 4fc7b3eb1b52a40e601bee323617cff224fc022d Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 25 Jun 2015 15:52:09 +0200 Subject: [PATCH] Setup: Fix the sorting of existing LDAP users --- modules/setup/application/forms/AdminAccountPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/setup/application/forms/AdminAccountPage.php b/modules/setup/application/forms/AdminAccountPage.php index fdd01a5de..25a9d6799 100644 --- a/modules/setup/application/forms/AdminAccountPage.php +++ b/modules/setup/application/forms/AdminAccountPage.php @@ -265,7 +265,7 @@ class AdminAccountPage extends Form $backend = UserBackend::create(null, $config); try { - return $backend->select(array('user_name'))->fetchColumn(); + return $backend->select(array('user_name'))->order('user_name', 'asc', true)->fetchColumn(); } catch (Exception $_) { // No need to handle anything special here. Error means no users found. return array();