我有一个PagedListHolder:
List<Map<String, Object>> list = n value;
PagedListHolder pagedListHolder = new PagedListHolder(list);
String sortColumn = request.getParameter("sidx");
String sord=request.getParameter("sord");
boolean ascending=false;
if(sord!=null&&sord.equals("asc")){
ascending=true;
}
pagedListHolder.setSort(new MutableSortDefinition(sortColumn, ascending,true));
pagedListHolder.resort();
答案 0 :(得分:0)
尝试以下
List<LinkedHashMap<String, Object>> list = new ArrayList<LinkedHashMap<String,Object>>();