Today, I used the Chinese sorting according to pinyin in the code. After consulting the masters in the group, I got the following code:
var arr = ["Zhang San","Li Si","Wang Wu","Asan"]; document.write(arr+"<br/>"); arr.sort(function(a,b){ return a.localeCompare(b); }); document.write(arr);