From 181ac93737940558aff9e0426e05b1055811deac Mon Sep 17 00:00:00 2001 From: CYJhub Date: Sat, 29 Jul 2023 11:10:15 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20=EC=B5=9C=EC=8B=A0=EC=88=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/shop/hooking/hooking/controller/CopyController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/shop/hooking/hooking/controller/CopyController.java b/src/main/java/shop/hooking/hooking/controller/CopyController.java index b51a85e..85b6311 100644 --- a/src/main/java/shop/hooking/hooking/controller/CopyController.java +++ b/src/main/java/shop/hooking/hooking/controller/CopyController.java @@ -84,6 +84,8 @@ public ResponseEntity>> copyScrapList(HttpServletRequest h List copyRes = copyService.getCopyScrapList(user); int startIndex = index * 30; List resultCopyRes = copyService.getLimitedCopyResByIndex(copyRes, startIndex); + resultCopyRes.sort((copy1, copy2) -> copy2.getCreatedAt().compareTo(copy1.getCreatedAt())); + return ResponseEntity.ok(new HttpRes<>(resultCopyRes)); }