Still wasn't quite right, this should be what we need...
$diff[$key] = $row->diff;
$GA[$key] = round((($team->points2_plus) > 0 ? (($team->points2_minus) > 0 ? (($team->points2_plus)/($team->points2_minus)) : 1.00) : 0.00),4);
$WinPerc[$key] = (($row->won_matches) > 0 ? (($row->done_matches) > 0 ? (($row->won_matches)/($row->done_matches)) : 1.00) : 0.00);
}
array_multisort( $points, SORT_DESC, $WinPerc, SORT_DESC, $GA, SORT_DESC );
Mods, is there any chance of killing this and the last post and moving this code into the first post with code? I apologize, just didn't get things right...