Each officer has a designation. These designations can limit the positions that the officers can fill.
If you are uncertain which officers go where, the game will let you know when an officer is placed in the wrong position.
Alternatively, from the battle setup screen, make sure you have no officers selected. Click the thumbs up button on the right hand side and the game will auto fill the positions accordingly. This will give you a better sense of direction.