SelectFilter ordering
I am trying to order a select field options from a table in decending ID but can't see any way to do that in the docs.
Existing code below.
Thanks in advance for any tips.
1 Reply
Since you're using the relationship() method, you can order the results of the query with its modifyQueryUsing parameter:
https://filamentphp.com/docs/3.x/forms/fields/select#customizing-the-relationship-query