order teams by id