I saw a video that you can CTRL left click and alternate between ranged and melee units and drag a line so missile troops don't go behind, but it doesn't work.