Help with sorting

Information about the VA integration pack
Post Reply
TigerSET
Ticket Agent
Posts: 2
Joined: Tue Aug 09, 2011 5:10 am

Help with sorting

Post by TigerSET » Thu Sep 08, 2011 12:16 pm

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>
  <?}
?>
Image

Konny
FSAirlines Developer
Posts: 1564
Joined: Sun Sep 25, 2005 10:40 am
Location: Munich, Germany
Contact:

Re: Help with sorting

Post by Konny » Thu Sep 22, 2011 1:50 am

Sorry, but I don't understand your question. What is the problem you're having?
Konrad - FSAirlines Developer
Image

TigerSET
Ticket Agent
Posts: 2
Joined: Tue Aug 09, 2011 5:10 am

Re: Help with sorting

Post by TigerSET » Thu Sep 22, 2011 6:01 am

I can not sort on va_user (((
Image

Konny
FSAirlines Developer
Posts: 1564
Joined: Sun Sep 25, 2005 10:40 am
Location: Munich, Germany
Contact:

Re: Help with sorting

Post by Konny » Sat Sep 24, 2011 4:43 pm

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.
Konrad - FSAirlines Developer
Image

Post Reply