From 3b4236ddee976061782d4a0e2f2807942bf80845 Mon Sep 17 00:00:00 2001 From: devxb Date: Sun, 8 Dec 2024 16:43:27 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=95=8C=EB=A6=BC=EC=9D=B4=20publi?= =?UTF-8?q?shedAt=EB=8B=A8=EC=9C=84=EB=A1=9C=20=EC=97=AD=EC=88=9C=EC=A0=95?= =?UTF-8?q?=EB=A0=AC=EB=90=98=EC=96=B4=20=EC=9D=91=EB=8B=B5=EB=90=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/gitanimals/inbox/controller/response/InboxResponse.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/org/gitanimals/inbox/controller/response/InboxResponse.kt b/src/main/kotlin/org/gitanimals/inbox/controller/response/InboxResponse.kt index 2c9dd76..24ef8bd 100644 --- a/src/main/kotlin/org/gitanimals/inbox/controller/response/InboxResponse.kt +++ b/src/main/kotlin/org/gitanimals/inbox/controller/response/InboxResponse.kt @@ -32,7 +32,9 @@ data class InboxResponse( fun from(inboxApplication: InboxApplication): InboxResponse { return InboxResponse( - inboxes = inboxApplication.inboxes.map { + inboxes = inboxApplication.inboxes + .sortedByDescending { it.publisher.publishedAt } + .map { InboxElement( id = it.id.toString(), image = it.image,