I've noticed that if I plant down single units and group them up, the group will always be sorted alphabetically in the entities list AND in the role selection screen. No matter which order I place them or group them, they will always be sorted alphabetically.
They should be in the order they are placed or add an ability to sort them correctly by rank, or sort the manually. Sorting them alphabetically (by class type, not by description) does not make sense for the role selection screen.