Sorting a repGroup by the count of another repGroup