© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
6 replies
toeknee

RelationshipManager Table Ordering

Is there a method I am missing, to allow sorting the table by an order of a relationships relationship?

For example, we have a resource showing a list of rows, which then shows data from a relationship, then shows more data from that relationships relationship and I want to order by the order column in the end relaitonship so:

Items -> Sub Item -> sub data.order
Solution
You can inject the query in
->defaultSort()
->defaultSort()
though 🤔

->defaultSort(function (Builder $query) {
   // 
})
->defaultSort(function (Builder $query) {
   // 
})
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

RelationshipManager Table Actions.
FilamentFFilament / ❓┊help
3y ago
Table custom re-ordering
FilamentFFilament / ❓┊help
3y ago
Table column layout ordering
FilamentFFilament / ❓┊help
3y ago
Table Actions for RelationshipManager be Visible in ViewPage
FilamentFFilament / ❓┊help
3y ago