diff --git a/packages/lib/query/getDocument.ts b/packages/lib/query/getDocument.ts index 9e61ae8ea..db658794c 100644 --- a/packages/lib/query/getDocument.ts +++ b/packages/lib/query/getDocument.ts @@ -18,7 +18,11 @@ export const getDocument = async ( userId: user.id, }, include: { - Recipient: true, + Recipient: { + orderBy: { + id: "asc", + }, + }, Field: { include: { Recipient: true, Signature: true } }, }, });