Skip to content

Commit

Permalink
feat: 내림차순으로 변경 (#454)
Browse files Browse the repository at this point in the history
  • Loading branch information
hocaron authored Aug 5, 2024
2 parents bd51062 + b2a311a commit 5c85242
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private static MemberBirthdayResponse extractTodayBirthday(LocalDate today, List
private static List<MemberBirthdayResponse> sortUpcomingBirthdays(LocalDate today, List<MemberBirthdayResponse> responses) {
return responses.stream()
.filter(response -> !today.equals(response.getDate()))
.sorted(Comparator.comparing(MemberBirthdayResponse::getDate).reversed())
.sorted(Comparator.comparing(MemberBirthdayResponse::getDate))
.collect(Collectors.toList());
}
}

0 comments on commit 5c85242

Please sign in to comment.