From 52c794a25954dd2542617ab25b464703c0decb2c Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 16 Apr 2024 09:19:30 +0200 Subject: [PATCH] Sort containers when loading and mounting in Logs.php --- app/Livewire/Project/Shared/Logs.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Livewire/Project/Shared/Logs.php b/app/Livewire/Project/Shared/Logs.php index a2aaebd2b..68e4e193e 100644 --- a/app/Livewire/Project/Shared/Logs.php +++ b/app/Livewire/Project/Shared/Logs.php @@ -44,7 +44,7 @@ public function loadContainers($server_id) } else { $containers = getCurrentApplicationContainerStatus($server, $this->resource->id, includePullrequests: true); } - $server->containers = $containers; + $server->containers = $containers->sort(); } catch (\Exception $e) { return handleError($e, $this); } @@ -94,6 +94,7 @@ public function mount() $this->servers = $this->servers->push($this->resource->server); } } + $this->containers = $this->containers->sort(); } catch (\Exception $e) { return handleError($e, $this); }