In the editor, there doesn’t seem to be any consistent sorting method for elements, states, etc. when building expressions. For example, when I use the “set state” action, the main page I’m working on is always at the top of the element list (awesome!), but for most other expressions, the main page is mixed in alphabetically with every other element. Related, when the list of states on an element populates, it’s sometimes in the order I’ve set on the element itself, but other times the order seems more based on the data type of the state, and still other times it’s alphabetical.
Yes, I know I can just type the name of what I’m looking for, but since a lot of elements auto-name based on what they’re referencing, typing the page name displays a long list of other elements that reference states on the page. Plus, it’s just nice for the thing you’re most likely to be looking for to be right at the top. The constant typing to search for elements on complex pages adds friction and time, even if it’s just a second or two each instance.
My suggestion is that the main page should be at the top of the list every single time a list of elements shows up, never mixed in with other elements alphabetically. From there, I don’t much care whether other elements are grouped by type first or simply listed alphabetically, as long as it’s consistent. States should always be listed in the order that I set them to in the element’s states popup.
And maybe this is more of a bug, but data fields also don’t seem to have a consistent ordering scheme. They’re listed alphabetically on the data tab, but the order just seems completely random when creating expressions. Maybe it’s alphabetical based on some original name for the fields? or based on creation date? Alphabetical would be fine, but it would also be nice to be able to set the order, just like states or option sets.
I hope this is something doable and desired by others!