function sortBySpell(arr){
return arr .sort(function(a,b){return a.localeCompare(b, 'zh-Hans-CN', {sensitivity: 'accent'})});
}
Test: sortBySpell(['Hello Buddha','Amitabha','Haha','Hot Wind'])
function sortBySpell(arr){
return arr .sort(function(a,b){return a.localeCompare(b, 'zh-Hans-CN', {sensitivity: 'accent'})});
}
Test: sortBySpell(['Hello Buddha','Amitabha','Haha','Hot Wind'])