标签:nbsp esc bsp new BYD str test int class
List<test> list = new List<test> ();
var result = list.OrderByDescending(p => p.we).ToList();//按照we升序排列
var result = list.OrderBy(p => p.we).ToList();//按照we降序排列
public class test
{
public int we { get; set; }
public string ss { get; set; }
}
标签:nbsp esc bsp new BYD str test int class
原文地址:https://www.cnblogs.com/macT/p/10726925.html