diff options
-rw-r--r-- | lib/private/appconfig.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/appconfig.php b/lib/private/appconfig.php index 71aa8307316..a47e1ad49e6 100644 --- a/lib/private/appconfig.php +++ b/lib/private/appconfig.php @@ -92,7 +92,7 @@ class AppConfig implements \OCP\IAppConfig { * entry in the appconfig table. */ public function getApps() { - $query = 'SELECT DISTINCT `appid` FROM `*PREFIX*appconfig`'; + $query = 'SELECT DISTINCT `appid` FROM `*PREFIX*appconfig` ORDER BY `appid`'; $result = $this->conn->executeQuery($query); $apps = array(); @@ -112,7 +112,9 @@ class AppConfig implements \OCP\IAppConfig { */ public function getKeys($app) { $values = $this->getAppValues($app); - return array_keys($values); + $keys = array_keys($values); + sort($keys); + return $keys; } /** |