摘要: 1 List s = new List() { "A", "家", "帮", "C", "B", "C", "D", "E" }; 2 3 s = s.OrderByDescending(w => w == "C").ToList(); //.ThenBy(q => q).ToList(); 4 5 6 //result: C,C, A,家,帮,B,... 阅读全文
posted @ 2018-02-27 23:52 h.yl 阅读(168) 评论(0) 推荐(0)