From 4f49d65d7853c45c17665cd05a452fddc440c4d5 Mon Sep 17 00:00:00 2001 From: na-trium-144 <100704180+na-trium-144@users.noreply.github.com> Date: Fri, 27 Mar 2026 15:49:05 +0900 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E5=9C=92=E7=A5=AD=E3=83=97=E3=83=AD?= =?UTF-8?q?=E3=82=B8=E3=82=A7=E3=82=AF=E3=83=88=E3=81=AE=E9=A0=86=E5=BA=8F?= =?UTF-8?q?=E3=81=8C=E3=83=93=E3=83=AB=E3=83=89=E3=81=AE=E3=81=9F=E3=81=B3?= =?UTF-8?q?=E3=81=AB=E5=A4=89=E3=82=8F=E3=82=8B=E3=81=AE=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/query.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/query.ts b/src/query.ts index 54afacf3..b5934065 100644 --- a/src/query.ts +++ b/src/query.ts @@ -10,7 +10,10 @@ export async function getProjects(kind: Kind | "all") { if (a_order !== b_order) { return a_order - b_order; } - return b.data.date.getTime() - a.data.date.getTime(); + if (b.data.date.getTime() !== a.data.date.getTime()) { + return b.data.date.getTime() - a.data.date.getTime(); + } + return (a.filePath ?? "") < (b.filePath ?? "") ? -1 : 1; }); }