This transformation:
when applied on the provided XML (wrapped into a single top element to be made a well-formed XML document):
English1
Maths1
Code1
English2
Maths2
Code2
produces the wanted result (in which the wanted elements are re-ordered:
Code1
English1
Maths1
Code2
English2
Maths2