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.
Solution:Jump to solution
Since you're using the relationship() method, you can order the results of the query with its modifyQueryUsing parameter:
```
use Illuminate\Database\Eloquent\Builder;
...
2 Replies
Solution
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
Thansk so much that works perfectly