From 5931d042b590e284e4bfc0b9478730eda4387f9c Mon Sep 17 00:00:00 2001 From: Brian Nelson Date: Mon, 14 Jul 2025 18:06:01 -0400 Subject: [PATCH] sort todos by complete and date --- lib/queries.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/queries.ts b/lib/queries.ts index 5930a13..7bb5a66 100644 --- a/lib/queries.ts +++ b/lib/queries.ts @@ -73,7 +73,10 @@ export const queries = { }, }, todos: { - orderBy: { dueDate: 'asc' }, + orderBy: [ + { complete: 'asc' }, + { dueDate: 'asc' }, + ], }, location: true }