Compare commits
No commits in common. "585e7eb3a6e9ace17c21b54996bfd271ebe1d8fc" and "683807b74ac67ee8bb1696f8d765f1aa2485ba4a" have entirely different histories.
585e7eb3a6
...
683807b74a
3
.gitignore
vendored
3
.gitignore
vendored
@ -22,6 +22,3 @@ pnpm-debug.log*
|
|||||||
|
|
||||||
# jetbrains setting folder
|
# jetbrains setting folder
|
||||||
.idea/
|
.idea/
|
||||||
|
|
||||||
# test articles
|
|
||||||
src/content/
|
|
||||||
|
@ -36,7 +36,7 @@ const categoriedPostList: Array<CategoriedPosts> = allCategories.map((key) => {
|
|||||||
if (postA.data.lastUpdate !== postB.data.lastUpdate) {
|
if (postA.data.lastUpdate !== postB.data.lastUpdate) {
|
||||||
return postA.data.lastUpdate < postB.data.lastUpdate ? 1 : -1;
|
return postA.data.lastUpdate < postB.data.lastUpdate ? 1 : -1;
|
||||||
}
|
}
|
||||||
return postA.id.localeCompare(postB.id, 'zh-Hans-CN', { sensitivity: 'accent' });
|
return postA.id.localeCompare(postB.id);
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
: object[key].sort(
|
: object[key].sort(
|
||||||
|
Loading…
Reference in New Issue
Block a user