From 5a53b9027207b022a963a2ca1cbc4400b1c464f4 Mon Sep 17 00:00:00 2001 From: Mekan1206 Date: Sun, 21 Dec 2025 05:11:21 +0500 Subject: [PATCH] Add default sorting to CardPinOrdersTable by creation date - Updated CardPinOrdersTable to default sort by 'created_at' in descending order for improved data visibility. --- .../Cards/Resources/CardPinOrders/Tables/CardPinOrdersTable.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Filament/Clusters/Cards/Resources/CardPinOrders/Tables/CardPinOrdersTable.php b/app/Filament/Clusters/Cards/Resources/CardPinOrders/Tables/CardPinOrdersTable.php index 5210107..a229d1b 100644 --- a/app/Filament/Clusters/Cards/Resources/CardPinOrders/Tables/CardPinOrdersTable.php +++ b/app/Filament/Clusters/Cards/Resources/CardPinOrders/Tables/CardPinOrdersTable.php @@ -20,6 +20,7 @@ class CardPinOrdersTable ->modifyQueryUsing(function (Builder $query) { DefaultQueryForResourceIndexRepository::make($query); }) + ->defaultSort('created_at', 'desc') ->columns([ TextColumn::make('id') ->label('ID'),