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
DrByte9mo ago
I haven't run into that problem on v3
Zetto
Zetto8mo ago
@MichaelMdp Hey, have you found the solution? I am experiencing the same problem
Shaung Bhone
Shaung Bhone8mo ago
->defaultSort('stock', 'desc');
->defaultSort('stock', 'desc');
Zetto
Zetto8mo 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
MichaelMdp8mo 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
Zetto8mo ago
I see, i can think of it as a compromise to enable other features.
Want results from more Discord servers?
Add your server
More Posts
Page Numbers - Table WidgetsHi All, I've been reading through all the docs and cannot find how to enable page numbers on a tablReduce the width of the sidebar to avoid horizontal scrolls on tablesHow can i reduce the width of the sidebar so as to avoid the horizontal scroll that appears on the tTagsInput Validation on Custom Livewire ComponentHi, I'm using a TagsInput on a custom livewire component. The form works fine and I followed httReuse the same Resources in multiple panelsHi everyone, I am building two panels; The first panel is for admin use and the second for staff memCustom View field doesn't recognize css changes???Really confused as to why my custom view field won't recognize any CSS changes. I was trying to add getTableRecordUrlUsing - in RelationManager wrong argument.I was using 3.0.39 After updating to 3.0.69 callback injects $record as Table instead of model Working on local machine, but Several issues on production server on edit image is not loading etcHello I am using filament 3 for admin panel with multiple plugin like Spatie media library, Spatie sRedirect to livewire component doesnt trigger errorI am trying to redirect to a livewire component, but the error is not being shown. I fill the error Copy list table layout outside the admin panelI'm using the Table traits/interfaces and was wondering if it's possible to copy the demo layout Whif in x-filament component creating errorHey guys, I don't know how to for my problem. I want to use a component of x-filament and try to a