list<string>排序、list<int>排序
 strList = strList.OrderBy(o => double.Parse(o)).ToList(); //数字

listFunc = listFunc.OrderBy(o => o).ToList(); //字母 
    
  list<class>和list<struct>,可以这样

testList = testList.OrderBy(u=>u.age).ToList(); //这样我们也把他进行了一次排序

 


   

相关文章:

  • 2022-01-20
  • 2021-06-14
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2021-07-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-15
  • 2021-08-30
相关资源
相似解决方案