diff --git a/src/main/java/com/api/TaveShot/domain/post/post/repository/PostRepositoryImpl.java b/src/main/java/com/api/TaveShot/domain/post/post/repository/PostRepositoryImpl.java index 0fde5fb..34f6d55 100644 --- a/src/main/java/com/api/TaveShot/domain/post/post/repository/PostRepositoryImpl.java +++ b/src/main/java/com/api/TaveShot/domain/post/post/repository/PostRepositoryImpl.java @@ -76,6 +76,7 @@ private List getSearchPageContent(final PostSearchCondition condit .fetchJoin() .limit(pageable.getPageSize()) .offset(pageable.getOffset()) + .orderBy(post.id.desc()) .fetch(); List postResponseList = toPostResponses(posts);