© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•8mo ago•
15 replies
ChesterS

Custom sort option

Not sure if I'm missing something but I can't find anything relevant in the docs/online

Is there a way to add a custom sort option, without having the related column appear on the table?

Eg I might want to sort by the
ID
ID
column, without having the ID visible on the table.

I tried having a hidden column but it didn't work.

TextColumn::make('ID')
  ->hidden()
  ->sortable()
TextColumn::make('ID')
  ->hidden()
  ->sortable()


Any idea/tips?
Thanks in advance
Solution
What about

TextColumn::make('ID')
  ->toggleable(isToggledHiddenByDefault: true)
  ->sortable()
TextColumn::make('ID')
  ->toggleable(isToggledHiddenByDefault: true)
  ->sortable()
Jump to solution
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 to add custom sort query?
FilamentFFilament / ❓┊help
9mo ago
Alpine sort plugin on custom page
FilamentFFilament / ❓┊help
2y ago
how to sort a custom column
FilamentFFilament / ❓┊help
3y ago
Table Filter Custom Option Html
FilamentFFilament / ❓┊help
16mo ago