Teams are ranked by total points, then goal difference, and then goals scored.