From 5b2352cce78119d7027ac5f14c769dfd050bbca1 Mon Sep 17 00:00:00 2001 From: Christopher Starcher Date: Thu, 3 Oct 2024 13:52:32 -0500 Subject: [PATCH] removed mapColumnValues from sort --- .../org/tdl/vireo/model/repo/impl/SubmissionRepoImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/tdl/vireo/model/repo/impl/SubmissionRepoImpl.java b/src/main/java/org/tdl/vireo/model/repo/impl/SubmissionRepoImpl.java index e50b7804e..f5502958c 100644 --- a/src/main/java/org/tdl/vireo/model/repo/impl/SubmissionRepoImpl.java +++ b/src/main/java/org/tdl/vireo/model/repo/impl/SubmissionRepoImpl.java @@ -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);