mirror of
https://github.com/ZeroCatDev/Classworks.git
synced 2025-07-02 00:59:23 +00:00
1
This commit is contained in:
parent
ec9f355f1b
commit
cee730c17a
@ -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);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user