sorts students by cohort