© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•15mo ago•
31 replies
Eric

How to sort table by relationship?

i have item model: name, created_by_id
i have user model

so i have the relationship in the item model: user (which returns the user who created the item)

in the items filament table im showing the item's user's created_at field

now, i want to be able to sort the items by the user created_at field. so i want to sort them by the relationship

how can i achieve it?
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

Table relationship sort error.
FilamentFFilament / ❓┊help
2y ago
Error when trying to sort table by MorphTo relationship
FilamentFFilament / ❓┊help
15mo ago
How to sort TextColumn by relationship date attribute?
FilamentFFilament / ❓┊help
3y ago
Sortable - Sort by far relationship
FilamentFFilament / ❓┊help
3y ago