F
Filament14mo ago
Homd

Sortable() and getStateUsing

I created a custom text column to display a calculated value (display user scores). The database itself actually doesn't have this column. All things work perfectly except when I try to make it sortable, which return "Column Score not Found". Is there anyway for me to sort it based on current state rather than database value?
2 Replies
ZedoX
ZedoX14mo ago
You just
database itself actually doesn't have this column
So how should this be sorted I think if you are manually resolving the value using getStateUsing, you'd need to manually define sortable closure It would be helpful if u could share your table's code
krekas
krekas14mo ago
Filament sorts only by db columns
Want results from more Discord servers?
Add your server