Does he go ahead of me because of head to head or goals for?

IF not, then I thought Goal Differential was the stat that determines who advances.

can someone please let me know?