Q:

sorting a php array

how do i sort this array by the nums...
Array(
  [nums] => Array
   (
    [0] => 34
    [1] => 12
    [2] => 13
   )
  [players] => Array
   (
    [0] => Mike
    [1] => Bob
    [2] => Mary
   )
)

... so that i get this one?
Array(
  [nums] => Array
   (
    [0] => 12
    [1] => 13
    [2] => 34
   )
  [players] => Array
   (
    [0] => Bob
    [1] => Mary
    [2] => Mike
   )
)

A:

array_multisort($x['nums'],$x['players']);

