标签:
正序排序:
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();
标签:
原文地址:http://www.cnblogs.com/zhangtingzu/p/5640347.html