List<int> tmp = new List<int>(){5,1,22,11,4};
tmp.Sort((x, y) => x.CompareTo(y));
Console.WriteLine(tmp);
降序排列
tmp.Sort((x, y) => -x.CompareTo(y));//這裏寫-x就是降序了