List<DataViewBean> tempList=new ArrayList<DataViewBean>();
tempList=factoryServ.getDataViewBySumId(sumId, scheme, et);
//排序 降序
Collections.sort(tempList,new Comparator<DataViewBean>(){
public int compare(DataViewBean arg0, DataViewBean arg1) {
return arg1.getThisEn().compareTo(arg0.getThisEn());
}
});
List<DataViewBean> tempList=new ArrayList<DataViewBean>();
tempList=factoryServ.getDataViewBySumId(sumId, scheme, et);
//排序 升序
Collections.sort(tempList,new Comparator<DataViewBean>(){
public int compare(DataViewBean arg0, DataViewBean arg1) {
return arg1.getThisEn().compareTo(arg0.getThisEn());
}
});