Having put in a fair amount of work adding custom states to pages and other elements, I see that they are not kept in alphabetical sequence in the Element inspector.
I haven’t fully verified this but it seems that when a new custom state is added, it is placed in the list alphabetically.
However, when a custom state is renamed, it stays in its original place in the list. This usually puts it out of alphabetical sequence. For instance, when the w prefix was added to DaysAdd and the c prefix was added to StatusCodeDeferred, they were kept in their original place which put them out of order based on their new spelling.
Is there a way to keep custom states in alphabetical sequence?