sort stats by team