Skip to content
Snippets Groups Projects
Commit 50cc6a85 authored by Robin Appelman's avatar Robin Appelman
Browse files

Add explicit sorting

parent a7c50514
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment