From 558e39006bccd1d94e458c48499a66216abccf62 Mon Sep 17 00:00:00 2001 From: K Gopal Krishna Date: Fri, 4 Apr 2025 22:56:11 +0530 Subject: [PATCH] Fix(PageList): keep byDateAndAlphabeticalFolderFirst as the default sorting order for PageList --- quartz/components/PageList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quartz/components/PageList.tsx b/quartz/components/PageList.tsx index 5cb57aef7..7bf23829c 100644 --- a/quartz/components/PageList.tsx +++ b/quartz/components/PageList.tsx @@ -58,7 +58,7 @@ type Props = { } & QuartzComponentProps export const PageList: QuartzComponent = ({ cfg, fileData, allFiles, limit, sort }: Props) => { - const sorter = sort ?? byDateAndAlphabetical(cfg) + const sorter = sort ?? byDateAndAlphabeticalFolderFirst(cfg) let list = allFiles.sort(sorter) if (limit) { list = list.slice(0, limit)