title: PHP sort array by two field values
body: <p>I've an array like this </p>
  
  <pre>
  Array (
   [0] => Array( "destination" => "Sydney",
                 "airlines" => "airline_1",
                 "one_way_fare" => 100,
                 "return_fare => 300
         ),
   [2] => Array( "destination" => "Sydney",
                 "airlines" => "airline_2",
                 "one_way_fare" => 150,
                 "return_fare => 350
         ),
   [3] => Array( "destination" => "Sydney",
                 "airlines" => "airline_3",
                 "one_way_fare" => 180,
                 "return_fare => 380
         )
  )
  </pre>
  
  <p>How can i sort the value by return_fare asc , one_way_fare asc ?</p>
  
  <p>I tried <a href="http://php.net/manual/en/function.array-multisort.php">array_multisort()</a> but i ended up getting mixed up data..</p>
  
  <p>asort only works for one dimensional array, i need to sort by two values or more, how can i achieve this like in SQL, order by field1 asc,field2 asc ?</p>