Premier League Table Ranking III
From a table of season results, work out each team's points (3 per win, 1 per draw), goal difference and league position within its season. Positions go by points, then goal difference, then team name; sort the output by season, position and name.