From f9161449297b6bd7399964ef448debe676f8fb80 Mon Sep 17 00:00:00 2001 From: TZGyn Date: Mon, 11 Sep 2023 07:02:10 +0800 Subject: [PATCH] Sort category by position in bookmark page --- app/dashboard/page.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/dashboard/page.tsx b/app/dashboard/page.tsx index 197a844..30e095f 100644 --- a/app/dashboard/page.tsx +++ b/app/dashboard/page.tsx @@ -19,6 +19,7 @@ export default async function DashboardPage() { with: { bookmark: true, }, + orderBy: (bookmark, { asc }) => [asc(bookmark.position)], }) const bookmarkCategoryWithBookmarks = bookmarkCategoryWithBookmarksSchema