Fix sorting on enrollments page