diff --git a/src/service/meme.service.ts b/src/service/meme.service.ts index 6be0e5d..862af9a 100644 --- a/src/service/meme.service.ts +++ b/src/service/meme.service.ts @@ -207,7 +207,7 @@ async function searchMemeByKeyword( ) .skip((page - 1) * size) .limit(size) - .sort({ reaction: -1 }) + .sort({ reaction: -1, _id: 1 }) .lean(); const memeList = await getMemeListWithKeywordsAndisSavedAndisReaction(user, searchedMemeList);