This is a happy ending not a sad ending. I don't know why some people keep being convinced that this is a dream or an after life vision.
Xiao Heng survived because he killed their ruler
In The Art Of War morals laws are important. Obeying the ruler to death is a must.
On the battlefields, the person that counts is the ruler. Once the ruler is dead, the army surrenders or retreats.
See The art of war University of toledo :
https://www.utoledo.edu/rotc/pdfs/the_art_of_war.pdf
- The battle is won by the ruler . When the ruler is dead the army retreats:
"Terrain :
11. If the enemy has occupied them before you, do not follow him, but retreat and try to entice him away.
[The turning point of Li Shih-min's campaign in 621 A.D. against the two rebels, Tou Chien-te, King of Hsia,and Wang Shih-ch`ung, Prince of Cheng, was his seizure of the heights of Wu-lao, in spike of which TouChien-te persisted in his attempt to relieve his ally in Lo-yang, was defeated and taken prisoner. See CHIUT`ANG, ch. 2, fol. 5 verso, and also ch. 54.
- Morals laws are important. A soldier must obey the leader. This is why if the leader looses as shown above with the prince and the king. The soldiers surrender or retreat ( regardless of their number).
" 3. The art of war, then, is governed by five constant factors, to be taken into account in one's deliberations,when seeking to determine the conditions obtaining in the field.
4. These are:
(1) The Moral Law; (2) Heaven; (3) Earth; (4) The Commander; (5) Method and discipline.
The MORAL LAW causes the people to be in complete accord with their ruler, so that they will follow him regardless of their lives, undismayed by any danger."
- If the ruler is exposed to insubordination, this ruler might commit suicide. ( see below). So soldiers must obey rules on the fields.
"14. Now an army is exposed to six several calamities, not arising from natural causes, but from faults for which the general is responsible. These are: (1) Flight; (2) insubordination; (3) collapse; (4) ruin; (5) disorganization; (6) rout.
[Tu Mu cites the unhappy case of T`ien Pu [HSIN T`ANG SHU, ch. 148], who was sent to Wei in 821 A.D. with orders to lead an army against Wang T`ing-ts`ou. But the whole time he was in command, his soldiers treated him with the utmost contempt, and openly flouted his authority by riding about the camp on donkeys, several thousands at a time. T`ien Pu was powerless to put a stop to this conduct, and when, after some months had passed, he made an attempt to engage the enemy, his troops turned tail and dispersed in every
direction. After that, the unfortunate man committed suicide by cutting his throat.] "
Conclusion : So yes, Duke Su won the battle when he killed the ruler's enemy.
So the remaining soldiers either surrendered or retreated.
This is not a dream, he came back home to Xue Fang Fei.
I hope this helps ^^