Compare commits
1 Commits
master
...
585e7eb3a6
| Author | SHA1 | Date | |
|---|---|---|---|
| 585e7eb3a6 |
@@ -36,7 +36,7 @@ const categoriedPostList: Array<CategoriedPosts> = 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(
|
||||
|
||||
Reference in New Issue
Block a user