Added proper sorting for team array. Now we can presort the list and not have to worry about messing up the order of the teams.