数组常用方法之数据按首字母排序

arr.sort((a,b)=>a.localeCompare(b,'zh-Hans-CN'),{sensitivity:'accent'}))
posted @ 2023-07-14 14:33  以恒欣之意  阅读(14)  评论(0)    收藏  举报