@ PK : True, the stacking order has some incidence but the order you mentioned is not always what works best in all situations...

There are times where having cav before the infantry scores more losses on the AI and fewer on the player... Morale also seems to be taken into account...

Place low morale units first in your stack and you're doomed...