Sorting courses in CourseView