Using PHP & MySql, I have:
$record[$teamid] = array('wins'=>$wins, 'losses'=>$losses, 'ties'=>$ties);
Example for TeamA, TeamB, TeamC in array:
record = [2, 1, 0];
record = [2, 0, 0];
record = [3, 0, 0];
When I print the output using arsort($record), I get:
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:
Is there a way to specify that 'losses' be sorted from low-to-high?
Thank you for your time.