October 19, 2012, 2:02 pm - James Farrer
I just spent a bit of time trying to change the order for the options in a reference field that is displayed as a drop-down. I was just about to give up when I ran into an attribute that appears to be just for this scenario.
The options are sorted by the display value by default. In this case I needed to order by another field. It turns out the secret is to add the "ref_sequence" attribute.
So if you wanted to order by an "order" field, you would add "ref_sequence=order". Simple but obscure.
Anonymous
Thanks James. I was stuck on this for a couple of hours until I saw your guide.