Replies: 3 comments 9 replies
-
Is there already a solution for this? Related other discussion #5618 I found |
Beta Was this translation helpful? Give feedback.
5 replies
-
both of the options are not working for sorting global search |
Beta Was this translation helpful? Give feedback.
1 reply
-
I've just come across this problem, is there a workaround until the above is implemented or is it simply impossible for now? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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