摘要: public class CustomComparer : System.Collections.IComparer { public int Compare(object x, object y) { string s1 = (string)x; string s2 = (string)y; if (s1.Length > s2.Length) return 1; if (s1.Length < s2.Length) return -1; for (int i = 0; i < s1.Length; i++) { if (s1[i] > s2[i]) return 1 阅读全文
posted @ 2012-06-19 00:07 qqliukk 阅读(234) 评论(1) 推荐(0) 编辑