From 1422407182e870eca390c9c0c1eba9c7c80a311a Mon Sep 17 00:00:00 2001 From: Abdalrashid Saeed Soliman <67204878+abdabdii@users.noreply.github.com> Date: Sat, 16 Mar 2024 22:27:37 +0200 Subject: [PATCH] feat: show reminders in chronological order (#7185) --- .../Vault/ManageVault/Web/ViewHelpers/VaultShowViewHelper.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Domains/Vault/ManageVault/Web/ViewHelpers/VaultShowViewHelper.php b/app/Domains/Vault/ManageVault/Web/ViewHelpers/VaultShowViewHelper.php index 6dc9553b7cf..23c9fac0597 100644 --- a/app/Domains/Vault/ManageVault/Web/ViewHelpers/VaultShowViewHelper.php +++ b/app/Domains/Vault/ManageVault/Web/ViewHelpers/VaultShowViewHelper.php @@ -46,6 +46,7 @@ public static function upcomingReminders(Vault $vault, User $user): array fn ($channel) => $channel->contactReminders() ->wherePivot('scheduled_at', '<=', $currentDate->addDays(30)) ->wherePivot('triggered_at', null) + ->orderByPivot('scheduled_at', 'asc') ->get() );