C#List<T>排序

List.Sort((a, b) => { return a.FMakeDate > b.FMakeDate ? 1 : -1; }); //升序

List.Sort((a, b) => { return a.FMakeDate < b.FMakeDate ? 1 : -1; }); //降序

posted @ 2022-04-13 21:22  逸晨89  阅读(33)  评论(0)    收藏  举报