© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
5 replies
Mike

Multiple default sort in tables

Is there a way to have multiple columns in the default sort for tables. A simple example would be to sort todos by priority and due date together, first priority, followed by the due date.

Thank you very much for the amazing work that is put into this piece of software!

Best regards

Mike
Solution
->defaultSort(function ($query, $direction) {
    $query->orderBy(...);
})
->defaultSort(function ($query, $direction) {
    $query->orderBy(...);
})
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

multiple values for default sort on tables
FilamentFFilament / ❓┊help
2y ago
how apply sort desc in all tables
FilamentFFilament / ❓┊help
3y ago
Multiple tables in one view
FilamentFFilament / ❓┊help
3y ago
Table groups change default sort
FilamentFFilament / ❓┊help
3y ago