C# 排序Gridview或IList

C# 排序Gridview或IList,c#,asp.net,gridview,ilist,C#,Asp.net,Gridview,Ilist,以下是我只能编辑的代码: ICCModelController ctrl = ControllerGettersFactory.ModelControllerGetters().CCModelController; IList list = ctrl.SearchCareersWithCategories(null, 0, DateTime.Today); CareerGrid.DataSource = list; CareerGrid.DataBind(); 当前“CareerGrid”网

以下是我只能编辑的代码:

ICCModelController ctrl = ControllerGettersFactory.ModelControllerGetters().CCModelController;
IList list = ctrl.SearchCareersWithCategories(null, 0, DateTime.Today);

CareerGrid.DataSource = list;
CareerGrid.DataBind();
当前“CareerGrid”网格视图的结果按“Date”列的升序排列。 按降序排列

CareerGrid.DataSource = list.OrderByDescending(x=>x.Date);
CareerGrid.DataBind();
或者,如果已经按日期排序

CareerGrid.DataSource = list.Reverse();
CareerGrid.DataBind();

使用了Ilist,但不支持反向()'System.Collections.Ilist'不包含'Reverse'的定义,并且找不到接受'System.Collections.Ilist'类型的第一个参数的扩展方法'Reverse'(是否缺少using指令或程序集引用?)