Then Simon brought forward his army and joined battle with the phalanx (for the cavalry were exhausted), and they were defeated by him and fled.