While I would much prefer to have more say in what unit gets placed in the front and read ranks of tactical battles, I understand that is now a distant wish for some future patch or expansion.
Placing ranged units in the rear rank has helped a little with the problem but the algorithm used to place units is still really flawed. If I have a full melee stack the units that move first are still behind the units that move last.
Please have the order run something like the following:
1. ALL UNITS START IN DEFENCE MODE
2. Ranged units automatically into the rear rank.
3. Units with less than 25% hit points automatically in the rear rank
4. Highest initiative units of those remaining (or those that move first on equal initiative) promoted to front rank.