Skip to content

Commit

Permalink
fix: 정책 전체 보기 정렬 기준 변경
Browse files Browse the repository at this point in the history
좋아요 수 내림차순
  • Loading branch information
limjustin committed Jun 9, 2024
1 parent 6d2d7ad commit 854ab6d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static List<PolicyResponse.PoliciesDetailDto> toPoliciesDetailDtoList(Lis
policiesDetailDtos.add(policiesDetailDto);
}

policiesDetailDtos.sort((o1, o2) -> o1.getTitle().compareTo(o2.getTitle()));
policiesDetailDtos.sort((o1, o2) -> o2.getLike_count() - o1.getLike_count());

return policiesDetailDtos;
}
Expand Down

0 comments on commit 854ab6d

Please sign in to comment.