I've got an array as follows:
Array (
[id] => Array
(
[0] => 3321
[1] => 3318
[2] => 3320
[3] => 3319
[4] => 3324
[5] => 3322
)
[name] => Array
(
[0] => Carla Taku
[1] => Honey-Pearl Te Moni
[2] => Monique Koroua
[3] => Summer Hellier
[4] => Wayne Kahukiwa
[5] => Natasha Merito
)
[courses] => Array
(
[0] => 2
[1] => 1
[2] => 1
[3] => 1
[4] => 1
[5] => 1
)
)
I want to sort this by "name", but I can't work out how to do this. I can't make it multi-dimensional due to some other code. I've tried usort, ksort, array_sort, array_multisort, but I'm not experienced enough to sort this.