I'm using simplexml_load_string to load an xml file. Is it possible to order the xml returned by node name.
Example the xml is always returned ordered by <item> but I want to output by <distance>
<item>1</item>
<distance>3</distance>
<item>2</item>
<distance>2</distance>
<item>3</item>
<distance>1</distance>
Any help really appreciated.