更好支持中文排序

This commit is contained in:
haiyangcui
2020-10-23 15:53:21 +02:00
parent a1423993c8
commit 454d192141

View File

@@ -130,7 +130,7 @@ export default {
methods: {
...mapMutations(['SET_VIEW', 'SET_DETAIL', 'SET_VIDEO', 'SET_SHARE']),
sortByName (a, b) {
return a.name.localeCompare(b.name)
return a.name.localeCompare(b.name, 'zh')
},
sortByType (a, b) {
return a.type.localeCompare(b.type)