Like Niko said - We gotta see what the result of each match of the group stage is.

From there, we calculate the points (and the rest of the stats like GA, GF, etc), only between the teams in conflict - 2nd, 3rd, 4th. The end result will quickly show why each team got its final standing.

Worth to note:
Win = 3 Points
Draw = 1 Point
Loss = 0 Points (None added, none taken)