package com.liuby.test;

import java.text.Collator;
import java.util.Arrays;
import java.util.Locale;

public class SortingChinese {
 public static void main(String[] args) {
  String[] names = { "张山", "李四", "王五", "爱情", "幸福", "English", "EngTi", "EngMi", "王六", "郑森", "郑"};
  Arrays.sort(names, Collator.getInstance(Locale.CHINA));
  for (int i = 0; i < names.length; i++)
   System.out.println(names[i]);
//  English
//  EngMi
//  EngTi
//  爱情
//  李四
//  王六
//  王五
//  幸福
//  张山
//  郑
//  郑森
 }
}