diff --git a/api/src/main/java/ca/bc/gov/educ/api/ruleengine/rule/MinElectiveCredits1996Rule.java b/api/src/main/java/ca/bc/gov/educ/api/ruleengine/rule/MinElectiveCredits1996Rule.java index fb11609..64aeeea 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/ruleengine/rule/MinElectiveCredits1996Rule.java +++ b/api/src/main/java/ca/bc/gov/educ/api/ruleengine/rule/MinElectiveCredits1996Rule.java @@ -39,8 +39,7 @@ public RuleData fire() { .getUniqueStudentCourses(ruleProcessorData.getStudentCourses(), ruleProcessorData.isProjected()); List minCreditGrade12Courses = tempStudentCourseList.stream().filter(StudentCourse::isUsedInMinCreditRule).collect(Collectors.toList()); tempStudentCourseList.removeAll(minCreditGrade12Courses); - tempStudentCourseList.sort(Comparator.comparing(StudentCourse::getCourseLevel).reversed() - .thenComparing(StudentCourse::getCompletedCoursePercentage).reversed()); + tempStudentCourseList.sort(Comparator.comparing(StudentCourse::getCompletedCoursePercentage).reversed()); List studentCourses = new ArrayList<>(minCreditGrade12Courses); studentCourses.addAll(tempStudentCourseList);