how does intel or attack determine what troops my archers attack first?

im not askign about the loses, i am asking about the tradefire