added comparator for affiliation