How to add custom sort query?
How do I add custom sort for
sortable()
adding function ($query, $direction)
causes An attempt was made to evaluate a closure for [Filament\Tables\Columns\TextColumn], but [$query] was unresolvable.
Just want to sort status based on asc or decending1 Reply
Was able to solve it by adding
true
on the sortable
function