当list做gridview的数据源时,可以用泛型来对list进行排序 ,代码如下
var temps = from t in list orderby t.paymentAmount descending select t;