First, it goes by goal differential. If the same, it goes by the most away goals.