I got it from the FIFA World Cup Preliminary Regulations
https://editorial.uefa.com/resource...minary_competition_regulations-covid19_1_.pdf
6.
In the league format, the ranking in each group is determined as follows:
a) greatest number of points obtained in all group matches;
b) goal difference in all group matches;
c) greatest number of goals scored in all group matches.
If two or more teams are equal on the basis of the above three criteria, their rankings shall be determined as follows:
d) greatest number of points obtained in the group matches between the teams concerned;
e) goal difference resulting from the group matches between the teams concerned;
f) greater number of goals scored in all group matches between the teams concerned;
g) the goals scored away from home count double between the teams concerned (if the tie is only between two teams);
h) fair play points system in which the number of yellow and red cards in all group matches is considered according to the following deductions:
– first yellow card:
– second yellow card/indirect red card: – direct red card:
– yellow card and direct red card:
minus1 point minus 3 points minus 4 points minus 5 points
i) drawing of lots by the FIFA Organising Committee.