sorting and adding team names