I'm trying to sort a two dimensions array, and I have no idea where to start. I looked at array_multisort, but I don't really found a good solution with this sorting.
I need to sort by time, each time are associate with a race. I need to find who are the best 5 person so the best time.
My array looks like this:
[0]=>
array(2) {
[0]=>
string(15) "Beaumier Mélina"
[1]=>
string(7) "1:29.30"
}
[1]=>
array(2) {
[0]=>
string(14) "Frizzle Émilie"
[2]=>
string(7) "1:47.96"
}
[2]=>
array(3) {
[0]=>
string(18) "Morissette Camélia"
[2]=>
string(7) "1:50.26"
[1]=>
string(7) "1:50.97"
}