I am trying to sort an irregular php array. It is irregular in that the structure is different than normal php arrays. I am usually able to sort arrays using usort, but the structure of this php array makes usort hard to use. Here's a basic structure of the array:
Array
(
[id] => Array
(
[0] => 3220604
[1] => 5341522
[2] => 1234568144
[3] => 11
)
[firstname] => Array
(
[0] => Sam
[1] => Donald
[2] => Keesh
[3] => Eat
)
[lastname] => Array
(
[0] => Fisher
[1] => Duck
[2] => Smelley
[3] => Me
)
)
I am trying to sort by ID, but of course, if I use usort, it tries to sort by the highest order arrays, like id, first, and last. How would I sort an array with this kind of structure?