LIST 排序

List<int> tmp = new List<int>(){5,1,22,11,4};
tmp.Sort((x, y) => -x.CompareTo(y));
Console.WriteLine(tmp);
//22,11,5,4,1
原文地址:https://www.cnblogs.com/wangchuang/p/5790958.html