When you have AI under your command, and you have enough of them (or a mixed group with duplicates) you might want to assign them to a color. Currently, you can then order that color and they will move together, as if you had said their numbers and told them to do something. However, when in formation, they will go in a mixed bag in the default formation. Furthermore, if you tell two teams to flank and the last one (the medic in my case, remaining white) is told to remain in formation, the medic will keep it's position according to the original group (last member) instead of moving closer, leaving a gap in the formation.
Ideally while in formation, if I have assigned teams, I'd like them to try to stick together on one side (may not always be possible) and when members/groups are told to flank, the rest will adapt the formation to the new "in formation" elements (considering that flanking members are NOT part of the formation, despite them moving with you).