From 1a57580b6ee1244d6f0037d0f02e448de1b1b675 Mon Sep 17 00:00:00 2001 From: nzambello Date: Wed, 1 Mar 2023 01:36:56 +0100 Subject: [PATCH] fix: time entries sort by --- app/routes/time-entries.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/time-entries.tsx b/app/routes/time-entries.tsx index a66ea54..84691a6 100644 --- a/app/routes/time-entries.tsx +++ b/app/routes/time-entries.tsx @@ -59,7 +59,7 @@ export async function loader({ request }: LoaderArgs) { const size = url.searchParams.get('size') ? parseInt(url.searchParams.get('size')!, 10) : 25; - const orderBy = url.searchParams.get('orderBy') || 'createdAt'; + const orderBy = url.searchParams.get('orderBy') || 'startTime'; const order = url.searchParams.get('order') || 'desc'; return json({