© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
12 replies
Eric

how to sort a custom column

so i have a custom column that has only an integer value, and im wondering how to make it sortable 🤔

TeamWinsColumn::make('wins')->sortable() // i tried sortable() but as expected, SQLSTATE[42S22]: Column not found: 1054 Unknown column 'wins' in 'order clause'
TeamWinsColumn::make('wins')->sortable() // i tried sortable() but as expected, SQLSTATE[42S22]: Column not found: 1054 Unknown column 'wins' in 'order clause'
image.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How can I sort by a custom Column
FilamentFFilament / ❓┊help
3y ago
How to add custom sort query?
FilamentFFilament / ❓┊help
9mo ago
How to custom text column
FilamentFFilament / ❓┊help
3y ago
How to display custom table column?
FilamentFFilament / ❓┊help
3y ago