110,566
社区成员
发帖
与我相关
我的任务
分享
List<String[]> list = new List<String[]>();
list.Add(new String[] { "1.2", "2.9", "1.4" });
list.Add(new String[] { "1.5", "1.6", "1.7" });
list.Add(new String[] { "1.2", "1.9", "2.0" });
list.Add(new String[] { "2.1", "2.2", "2.3" });
list.Add(new String[] { "2.4", "2.5", "2.6" });
var res = from s in list orderby s[0], s[1] select s;
list = res.ToList();
foreach (string[] item in list)
{
MessageBox.Show(item[0] + "\r\n" + item[1]);
}