Skip to content

Commit

Permalink
Merge pull request #109 from Central-MakeUs/105-정렬-기준-수정
Browse files Browse the repository at this point in the history
�Fix(#105): 날짜 오름차순에서 내림차순 정렬로 수정
  • Loading branch information
tmddus2 committed Aug 28, 2024
2 parents 5e21180 + 3c061c0 commit 3882ff3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ public static List<GroupedFilterLogDto> groupByDate(List<FilterLogDto> filterLog
.build();
groupedFilters.add(groupedFilter);
}

Collections.sort(groupedFilters, (s1, s2) -> s1.getDate().compareTo(s2.getDate()));
Collections.sort(groupedFilters, (s1, s2) -> s2.getDate().compareTo(s1.getDate()));
return groupedFilters;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public static List<GroupedStampDto> groupByDate(List<StampDto> stampDtos) {
groupedStamps.add(groupedStamp);
}

Collections.sort(groupedStamps, (s1, s2) -> s1.getDate().compareTo(s2.getDate()));
Collections.sort(groupedStamps, (s1, s2) -> s2.getDate().compareTo(s1.getDate()));
return groupedStamps;
}
}
Expand Down

0 comments on commit 3882ff3

Please sign in to comment.