Sorting Results returned by SimpleXML, and Xpath in PHP

AverveViore

New Member
I get and display the results from the XML like so:\[code\]<?php $xml = simplexml_load_file($url); //RUN QUERY ON XML $xQuery = $xml->xpath($query);foreach($xQuery as $results){?> MAKE: <?php echo $results->Make;?><br /> Model: <?php echo $results->Model;?><br /> <?php } ?>\[/code\]Now what I would like to do is sort the $xQuery to for instance display the results of the Make's in alphabetical order before I display it. Is this possible? If so how can I manage this?
 
Back
Top