before the battle you can select what type of units you want in a specific group, so you can select group number 6 for example and select the icon for two handed weapon inf and the game will transfer all your line breakers to that group, you can even select the % of troops of that type you want in that specific group