Skip to content

Commit

Permalink
Feat: Change to sort by date, not createdat.
Browse files Browse the repository at this point in the history
  • Loading branch information
huGgW committed Sep 19, 2023
1 parent 46dd7b7 commit a4d2e31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class NewsRepositoryImpl(
}

val newsEntityList = jpaQuery
.orderBy(newsEntity.createdAt.desc())
.orderBy(newsEntity.date.desc())
.offset(pageRequest.offset)
.limit(pageRequest.pageSize.toLong())
.distinct()
Expand Down

0 comments on commit a4d2e31

Please sign in to comment.