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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-11
  • 2022-12-23
  • 2021-10-05
猜你喜欢
  • 2022-01-24
  • 2021-07-31
  • 2021-12-14
相关资源
相似解决方案