I have a multidimensional array that looks like:
$arr=Array
(
[0] => Array
(
[0] => TEAM1
[1] => 3
[2] => 0
[3] => 422.47
[4] => 192.62
)
[1] => Array
(
[0] => TEAM2
[1] => 2
[2] => 1
[3] => 402.14
[4] => 210.70
)
[2] => Array
(
[0] => TEAM3
[1] => 3
[2] => 0
[3] => 376.79
[4] => 174.64
)
)
The 5 columns relate to Team Name, # wins, # losses, # of points for, # of points against.
How would I sort $arr
by column 1 (# Wins) (Descending), then column 2 (# Losses) (Ascending), and then column 3 (# of Pts For) (Descending)