Generally, the following criteria apply in this situation:
Goal difference
Goals scored
Penalty shoot-out
Number of wins
Position in Euro qualifiers