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
DrByte
DrByte14mo ago
I haven't run into that problem on v3
Zetto
Zetto13mo ago
@MichaelMdp Hey, have you found the solution? I am experiencing the same problem
Shaung Bhone
Shaung Bhone13mo ago
->defaultSort('stock', 'desc');
->defaultSort('stock', 'desc');
Zetto
Zetto13mo ago
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.
MichaelMdp
MichaelMdpOP13mo ago
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...
Zetto
Zetto13mo ago
I see, i can think of it as a compromise to enable other features.
Want results from more Discord servers?
Add your server