Is it possible to sort options in a Select form field?
I have a
Select
field pulling in options from a relationship. Trouble is, they are sorted alphabetically, but I have a custom sort order on the model using a sort_order
column. I don't see anything in the docs that indicates that this is possible, but figured I'd ask before I venture down the road of a custom field (would rather not).
Here's my code example:
1 Reply
SOLVED: my brain just needed to fart a few times: