快速根据某个数值排序

List infos = new List();
var sortedData = infos.OrderByDescending(o => o.num).ToList();
var sortedDatas = infos.OrderBy(o => o.num).ToList();
public class info
{
    public string name;
    public float num;
    public int point;
}

你可能感兴趣的:(快速根据某个数值排序)