Defaultsort / column sorting
When I set a default sortorder on a table, it will sort 'asc' by default, when I click the row, the url is updated to sort 'asc'.
I have to click it again to switch to 'desc'.
Seems to be different behavior then v2, or am I missing something ?
6 Replies
I haven't run into that problem on v3
@MichaelMdp Hey, have you found the solution? I am experiencing the same problem
Not the issue, the default sort is correct that is ascending. Defaulting to desc is not the intended behavior. However user should be able to change how it is sorted with ->sortable(). Still pressing twice is a bad ux.
@Zetto as intended :/ see https://github.com/filamentphp/filament/issues/8971
GitHub
$table->defaultSort(...) needs 2 clicks, to go from asc to desc · I...
Package filament/filament Package Version v3.0.62 Laravel Version 10.24.0 Livewire Version v3.0.5 PHP Version 8.1.16 Problem description When using a filament table with a column flagged as 'so...
I see, i can think of it as a compromise to enable other features.