summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-02-11 14:26:40 +0100
committerRobin Appelman <icewind@owncloud.com>2014-02-11 14:26:40 +0100
commit50cc6a85e5d4c817235aee58e9d461e4034df27b (patch)
tree627485b1b241d75121cae549dccabd63ca32df97 /lib
parenta7c50514aca27dc3649f69536ca2a557f72aec99 (diff)
downloadnextcloud-server-50cc6a85e5d4c817235aee58e9d461e4034df27b.tar.gz
nextcloud-server-50cc6a85e5d4c817235aee58e9d461e4034df27b.zip
Add explicit sorting
Diffstat (limited to 'lib')
-rw-r--r--lib/private/appconfig.php6
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;
}
/**