diff --git a/src/components/article/CollectionSummary.astro b/src/components/article/CollectionSummary.astro index 1eba3a1..ce9be7f 100644 --- a/src/components/article/CollectionSummary.astro +++ b/src/components/article/CollectionSummary.astro @@ -36,7 +36,7 @@ const categoriedPostList: Array = allCategories.map((key) => { if (postA.data.lastUpdate !== postB.data.lastUpdate) { return postA.data.lastUpdate < postB.data.lastUpdate ? 1 : -1; } - return postA.id.localeCompare(postB.id); + return postA.id.localeCompare(postB.id, 'zh-Hans-CN', { sensitivity: 'accent' }); } ) : object[key].sort(