i have a group of arrays that i need to sort numerically:
example:
$a= array('Adam','maths',3,'physics',5,'sports',6)
$b= array('Mike','maths',6,'physics',2,'sports',8)
$c= array('Sam','maths',3,'physics',9,'sports',6)
$all = array($a,$b,$c)
Now i need to sort $all by considering only the numbers. is there an alternative to the function sort? thx
Start with a sane array structure:
Then, do a simple custom sort: