Regression: fix container sorting for Dashboard

This commit is contained in:
bergware
2018-03-17 00:42:20 +01:00
parent 0ff8434832
commit 4550957675
2 changed files with 1 additions and 1 deletions

View File

@@ -802,6 +802,7 @@ class DockerClient {
$this->allContainersCache[] = $c;
}
}
usort($this->allContainersCache, $this->build_sorter('Name'));
return $this->allContainersCache;
}

View File

@@ -23,7 +23,6 @@ if (pgrep('dockerd')!==false && ($display=='icons' || $display=='docker')) {
$DockerClient = new DockerClient();
$DockerTemplates = new DockerTemplates();
$containers = $DockerClient->getDockerContainers() ?: [];
ksort($containers,SORT_NATURAL);
$Allinfo = $DockerTemplates->getAllInfo();
$menu = [];
foreach ($containers as $ct) {