Replies: 1 comment 5 replies
-
Is there already a solution for this? Related other discussion #5618 I found |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, the global search results in a filament panel are sorted alphabetically by model name and there is no way to influence this.
The problem:
In one of our projects, we have Invoices and Services. Both models are globally searchable, but a matching "Service" is more interesting that a matching Invoices, so I would like to display the Services first.
Possible solutions:
$globalSearchCategoryLabel
or something similar and then sorting the categories alphabetically, giving the developper control over the sort order of the categories by changing the label.$globalSearchSort
, which would work similarly to $navigationSort for navigation links.I would gladly work on a PR if that sounds like something that would benefit the project.
Beta Was this translation helpful? Give feedback.
All reactions