Disable sort on items shown in Editor Select Field

Disable sort on items shown in Editor Select Field

icefieldicefield Posts: 45Questions: 19Answers: 1

I'm retrieving a list of states and provinces from a table, and showing them as options in an Editor Select-type field.

I'd like to show the list of states, then the list of provinces in the order I have added them to the table.

Is there an option to disable sorting when fetching the data to populate the Select field?

Here is the pertinent part of my code:

Field::inst('Address.state') ->options(Options::inst() ->table('State') ->value('value') ->label('label') )

This question has accepted answers - jump to:

Answers

This discussion has been closed.