Skip to content

Commit

Permalink
Fix: 마이 챌린지 시작일 기준으로 정렬
Browse files Browse the repository at this point in the history
  • Loading branch information
chaewon-io committed Apr 21, 2024
1 parent 3c672ba commit f678b65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public List<MyChallengeResponseDto> getMyChallengesListed(String email, Challeng
}

return myChallengesListed.stream()
.sorted(Comparator.comparing(MyChallenge::getCreateDate).reversed())
.sorted(Comparator.comparing(MyChallenge::getStartDate).reversed())
.map(myChallenge -> mapToResponseDto(myChallenge, status, member))
.collect(Collectors.toList());
}
Expand Down

0 comments on commit f678b65

Please sign in to comment.