Using PHP & MySql, I have:

$record[$teamid] = array('wins'=>$wins, 'losses'=>$losses, 'ties'=>$ties);


Example for TeamA, TeamB, TeamC in array:

record[0] = [2, 1, 0];
record[1] = [2, 0, 0];
record[2] = [3, 0, 0];


When I print the output using arsort($record), I get:

TeamC 3-0-0
TeamA 2-1-0
TeamB 2-0-0

because it is sorting from high-to-low starting with the wins, then losses, then ties.

Since 2-1-0 is a worse win % than 2-0, I want the output to be:

TeamC 3-0-0
TeamB 2-0-0
TeamA 2-1-0


Is there a way to specify that 'losses' be sorted from low-to-high?

Thank you for your time.