Skip to content

Commit

Permalink
sorting in expiry dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
AzGasim committed Jan 15, 2025
1 parent 42a091b commit 0b686e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/expiry/src/Resources/ExpiryResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ public static function table(Table $table): Table
}

return $table
->query(
Expiry::query()
->orderBy('escalated_at', 'desc')
->orderBy('expired_at', 'asc')
)
->columns([
Tables\Columns\TextColumn::make('title')
->label(__('core::core.title'))
Expand Down Expand Up @@ -114,7 +119,6 @@ public static function table(Table $table): Table
->searchable()
->limit(50),
])
->defaultSort('escalated_at', 'desc')
->filters([
SelectFilter::make('expiry_job')
->label(__('core::expiry.expiry_job'))
Expand Down

0 comments on commit 0b686e7

Please sign in to comment.