From cee730c17a754ad6789de0d5fa93bddcbf9c9929 Mon Sep 17 00:00:00 2001 From: SunWuyuan Date: Sun, 16 Mar 2025 10:28:44 +0800 Subject: [PATCH] 1 --- src/components/settings/StudentListCard.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/settings/StudentListCard.vue b/src/components/settings/StudentListCard.vue index c34f202..0485afc 100644 --- a/src/components/settings/StudentListCard.vue +++ b/src/components/settings/StudentListCard.vue @@ -365,8 +365,8 @@ export default { sortStudentsByPinyin() { const newList = [...this.modelValue.list].sort((a, b) => { - const pinyinA = pinyin(a, { toneType: "none" }); - const pinyinB = pinyin(b, { toneType: "none" }); + const pinyinA = pinyin(a, { toneType: "none" ,mode: 'surname'}); + const pinyinB = pinyin(b, { toneType: "none",mode: 'surname' }); return pinyinA.localeCompare(pinyinB); });