1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2025-07-02 00:59:23 +00:00
This commit is contained in:
SunWuyuan 2025-03-16 10:28:44 +08:00
parent ec9f355f1b
commit cee730c17a
No known key found for this signature in database
GPG Key ID: A6A54CF66F56BB64

View File

@ -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);
});