Sorting Enum¶
Enum cases are sorted, by default, with their definition order. The name of the case does not matter, just the position of definition within the enumeration.
When the order of definition cannot be changed, as per coding convention, the cases may be backed, and then, sorted at the last moment. Just know that the cases must be in a variable first.