DataView dv1 = dt1.DefaultView; dv1.Sort = "xTime DESC";//根据时间逆序 dt1 = dv1.ToTable();
另外,.ToTable()方法有多种重载,常用的是:
dv1.ToTable(true, "ID", "title", "xTime");//过滤重复