I don't sort them by power. I sort them by attack since i want teams with equal killing potential. They'll generally get the same survival. As such i just manually put them into groups by sorting the character section by atk value and putting the highest atk girl in each group until all groups are filled.