I am trying to sort the xml based on code in the field tag.
Below is the code implementation I tried but it is printing only one field
Sorting should be mainly