List<T> LINQ 排序
正序排序:
List<DataQuestionEntity> dqels = 获取数据;
var sorteddeqls =
(from a in dqels
orderby a.PDate
select a).ToList();
倒序排序:
List<DataQuestionEntity> dqels = 获取数据;
var sorteddeqls =
(from a in dqels
orderby a.PDate descending
select a).ToList();