Page 1 of 1

Help with sorting

Posted: Thu Sep 08, 2011 12:16 pm
by TigerSET

Code: Select all

<?php
  $___notjson=1;
  $objDOM = new DOMDocument();
  $objDOM->load("http://www.fsairlines.net/va_interface.php5?function=getPilotList&va_id=18532");
  $dataNodes = $objDOM->getElementsByTagName("data");
  foreach ($dataNodes as $item) {
    echo $item->getAttribute('va_user'); ?><br>
  <?}
?>

Re: Help with sorting

Posted: Thu Sep 22, 2011 1:50 am
by Konny
Sorry, but I don't understand your question. What is the problem you're having?

Re: Help with sorting

Posted: Thu Sep 22, 2011 6:01 am
by TigerSET
I can not sort on va_user (((

Re: Help with sorting

Posted: Sat Sep 24, 2011 4:43 pm
by Konny
Well, currently it's not possible to influence the order of the results, but that's a good idea for the next addition. I'll put it on the todo-list.
The only thing you can do right now is to change the order with some php code. Guess the array_multisort function could do that.