added choice for printing the list sorted by name or by cohort