Skip to content

Commit 19246b5

Browse files
committed
GRAD2-2799: fixed the issue on GPA calculation due to the wrong order of student courses.
GRAD2-2799: fixed the issue on GPA calculation due to the wrong order of student courses.
1 parent acc2e70 commit 19246b5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

api/src/main/java/ca/bc/gov/educ/api/ruleengine/rule/RegistrationsDuplicateCrseRule.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ public RuleData fire() {
3838
boolean isCompletedCourse1 = false;
3939
boolean isCompletedCourse2 = false;
4040

41-
studentCourseList.sort(Comparator.comparing(StudentCourse::getCourseCode));
42-
4341
for (int i = 0; i < studentCourseList.size() - 1; i++) {
4442
for (int j = i + 1; j < studentCourseList.size(); j++) {
4543
if (studentCourseList.get(i).getCourseCode().equals(studentCourseList.get(j).getCourseCode())

0 commit comments

Comments
 (0)