mirror of
https://github.com/ZeroCatDev/Classworks.git
synced 2025-07-02 17:29:23 +00:00
1
This commit is contained in:
parent
ec9f355f1b
commit
cee730c17a
@ -365,8 +365,8 @@ export default {
|
|||||||
|
|
||||||
sortStudentsByPinyin() {
|
sortStudentsByPinyin() {
|
||||||
const newList = [...this.modelValue.list].sort((a, b) => {
|
const newList = [...this.modelValue.list].sort((a, b) => {
|
||||||
const pinyinA = pinyin(a, { toneType: "none" });
|
const pinyinA = pinyin(a, { toneType: "none" ,mode: 'surname'});
|
||||||
const pinyinB = pinyin(b, { toneType: "none" });
|
const pinyinB = pinyin(b, { toneType: "none",mode: 'surname' });
|
||||||
return pinyinA.localeCompare(pinyinB);
|
return pinyinA.localeCompare(pinyinB);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user