1) You can check the outcome from the combat simulator here: [s4.travian.com]. I suppose with a little work you could derive the 'order' in which attacks occur.
2) As for your hero, assuming he survives, he gets experience for everything that's killed during the attack/defense.