Skip to content

Commit

Permalink
removed mapColumnValues from sort
Browse files Browse the repository at this point in the history
  • Loading branch information
cstarcher committed Oct 3, 2024
1 parent 70307e6 commit 5b2352c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,9 @@ public Long mapRow(ResultSet rs, int rowNum) throws SQLException {
idToIndexMap.put(ids.get(i), i);
}

submissions.forEach(submission -> mapColumnValues(submission, submissionListColumns));

submissions.sort((s1, s2) -> {
mapColumnValues(s1, submissionListColumns);
mapColumnValues(s2, submissionListColumns);
int index1 = idToIndexMap.get(s1.getId());
int index2 = idToIndexMap.get(s2.getId());
return Integer.compare(index1, index2);
Expand Down

0 comments on commit 5b2352c

Please sign in to comment.