In the three - way tie on five points in Group 5 , Portugal finished top .
In the head - to - head also involving Italy and Finland .
In the three - way tie on five points in Group 5 , Portugal finished top because in the head - to - head also involving Italy and Finland .