//倒序
list.OrderByDescending(i => i.a).ThenByDescending(i => i.b);
//顺序
list.OrderBy(i => i.a).ThenBy(i => i.b);
本文共 165 字,大约阅读时间需要 1 分钟。
//倒序
list.OrderByDescending(i => i.a).ThenByDescending(i => i.b);
//顺序
list.OrderBy(i => i.a).ThenBy(i => i.b);
转载于:https://www.cnblogs.com/ouylvr0625/p/7685928.html