降序:
lstroot.Sort((x,y)=>y.static_count.CompareTo(x.static_count));
升序:
lstroot.Sort((x,y)=>x.static_count.CompareTo(y.static_count));
降序:
lstroot.Sort((x,y)=>y.static_count.CompareTo(x.static_count));
升序:
lstroot.Sort((x,y)=>x.static_count.CompareTo(y.static_count));
转载于:https://www.cnblogs.com/hellowin/p/10234162.html