ArrayDC opened a new issue #2980: [Android] Unsupported localeCompare in chinese
URL: https://github.com/apache/incubator-weex/issues/2980
 
 
   string sort in chinese as follows:
   ` 
       var arr = ['南京', '北京', '上海', '杭州', '深圳'];
       arr = arr.sort(function(item1, item2) {
           return item1.localeCompare(item2, 'zh-CN');
       });
       console.log(arr); //arr not change 
   `
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to