Is ->sortable() working on V3?

Hey, I'm using filament 3.0.13 and sortable seems to be not working at all. No console errors, no livewire errors. And the code is as same as always:
Tables\Columns\TextColumn::make('created_at')
->size('sm')
->sortable(),
Tables\Columns\TextColumn::make('created_at')
->size('sm')
->sortable(),
I have another TextColumn for a simple text name and also the same. Any ideas?
1 Reply
magarrent
magarrentOP16mo ago
Oh I saw the error. I had an ->orderBy on my query, and that is why is not ordering enything else. Just removed this:
->query(UserorderBy('created_at', 'desc'))
->query(UserorderBy('created_at', 'desc'))
And add the default sort
->defaultSort('created_at', 'desc')
->defaultSort('created_at', 'desc')
Want results from more Discord servers?
Add your server