goaldifference
Goal difference is a tie-breaking metric used in many sports, particularly in league or tournament formats, to separate teams that have finished with the same number of points. It is calculated by subtracting the total number of goals conceded by a team from the total number of goals scored by that team over the course of the competition. A positive goal difference indicates that a team has scored more goals than it has conceded, while a negative goal difference signifies the opposite.
In situations where two or more teams are tied on points, the team with the superior goal
Other tie-breaking criteria may be used if goal difference is also equal. These can include head-to-head records