completed sorting for team