Skip to content

Commit cd29dc9

Browse files
authored
Merge branch 'main' into update-shinkan-2026-spring
2 parents 5afa394 + 7e4e79c commit cd29dc9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/query.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ export async function getProjects(kind: Kind | "all") {
1010
if (a_order !== b_order) {
1111
return a_order - b_order;
1212
}
13-
return b.data.date.getTime() - a.data.date.getTime();
13+
if (b.data.date.getTime() !== a.data.date.getTime()) {
14+
return b.data.date.getTime() - a.data.date.getTime();
15+
}
16+
return (a.filePath ?? "") < (b.filePath ?? "") ? -1 : 1;
1417
});
1518
}
1619

0 commit comments

Comments
 (0)