Skip to content

Commit

Permalink
fix: 정렬 내림차순으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
kikingki committed Jun 6, 2023
1 parent 2435466 commit cab5f9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/gdsc/frjns/news/service/NewsService.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public Slice<NewsDTO> findAll(Pageable pageable){

// 전체 스케줄 불러오기
public List<News> findAll() {
List<News> newsList = newsRepository.findAll(Sort.by(Sort.Direction.ASC, "startDate"));
List<News> newsList = newsRepository.findAll(Sort.by(Sort.Direction.DESC, "startDate"));

return newsList;
}
Expand Down

0 comments on commit cab5f9f

Please sign in to comment.