diff --git a/core/Command/Config/ListConfigs.php b/core/Command/Config/ListConfigs.php index 9003ec49c938d..9fa02167e0ee5 100644 --- a/core/Command/Config/ListConfigs.php +++ b/core/Command/Config/ListConfigs.php @@ -117,6 +117,7 @@ protected function getSystemConfigs(bool $noSensitiveValues): array { $configs[$key] = $value; } } + ksort($configs); return $configs; } @@ -130,10 +131,13 @@ protected function getSystemConfigs(bool $noSensitiveValues): array { */ protected function getAppConfigs(string $app, bool $noSensitiveValues) { if ($noSensitiveValues) { - return $this->appConfig->getFilteredValues($app); + $config = $this->appConfig->getFilteredValues($app); } else { - return $this->appConfig->getAllValues($app); + $config = $this->appConfig->getAllValues($app); } + ksort($config); + + return $config; } /**