From f71a8e9fef0e803f11821d9bd2026ec91bcc1630 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 6 Jun 2024 10:46:19 +0200 Subject: [PATCH] fix: sort backup executions --- app/Livewire/Project/Database/BackupExecutions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Livewire/Project/Database/BackupExecutions.php b/app/Livewire/Project/Database/BackupExecutions.php index f53a7b113..9666bbb43 100644 --- a/app/Livewire/Project/Database/BackupExecutions.php +++ b/app/Livewire/Project/Database/BackupExecutions.php @@ -50,7 +50,7 @@ class BackupExecutions extends Component public function refreshBackupExecutions(): void { if ($this->backup) { - $this->executions = $this->backup->executions()->get(); + $this->executions = $this->backup->executions()->get()->sortBy('created_at'); } } }