在Java中使用Collator类按照汉字拼音排序字符串 public static void main(String[] args) throws Exception{ String[] strs = new String[]{"张","王","李"}; Arrays.sort(strs,Collator.getInstance(Locale.CHINA)); for (int i = 0; i < strs.length; i++) {…
定义一个类: using System.Data.SQLite; namespace DAL { /// <summary> /// SQLite中文排序 /// </summary> [SQLiteFunction(FuncType = FunctionType.Collation, Name = "PinYin")] public class SQLitePinYingSort : SQLiteFunction { public override int C…