diff --git a/apps/portal/src/server/router/offers/offers-comments-router.ts b/apps/portal/src/server/router/offers/offers-comments-router.ts index 20c79248..2e6b9e38 100644 --- a/apps/portal/src/server/router/offers/offers-comments-router.ts +++ b/apps/portal/src/server/router/offers/offers-comments-router.ts @@ -25,15 +25,21 @@ export const offersCommentsRouter = createRouter() include: { user: true, }, + orderBy: { + createdAt: 'desc' + } }, replyingTo: true, user: true, }, + orderBy: { + createdAt: 'desc' + } }, }, where: { id: input.profileId, - }, + } }); const discussions: OffersDiscussion = {