List<test> list = new List<test> ();

var result = list.OrderByDescending(p => p.we).ToList();//按照we升序排列

var result list.OrderBy(=> p.we).ToList();//按照we降序排列

public class test
{
public int we { get; set; }
public string ss { get; set; }
}

posted on 2019-04-17 23:09  红磨坊后的白桦树  阅读(136)  评论(0编辑  收藏  举报