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?
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?