My array:
$MY_ARRAY =
Array
(
[0] => Array
(
[0] => 2861
[1] => Array
(
[start_month] => 6
[start_year] => 1970
[end_month] => 12
[end_year] => 1990
[experience_info] => "Practically a random string"
)
)
)
And I would like to sort the $MY_ARRAYdirect children by their internal content, ideally in the order start_year, start_month, end_year, end_month . I think I could use it somehow array_multisort(), but I don’t know how to do it. Does anyone know how to deal with this?
Thanks.
EDIT: As it turned out, the solution was nice and simple, which I did not know, is that during the comparison in the callback-compare function you can go to a deeper structure - so if yours is deeper than the lvl-1 indices, always remains the same (my case) how to do this :)