日期:2014-05-18 浏览次数:20745 次
List<string> list_str = new List<string>() { "4-1","1-2", "2-1","8-4" }; list_str = list_str.OrderBy(a=>a).ToList(); /* * [0] "1-2" string [1] "2-1" string [2] "4-1" string [3] "8-4" string */