Sort sort=null;
if(sortType==null||sortType.trim().length()==0) {
sort=new Sort(Direction.DESC,"createTime");
}else if("newest".equals(sortType)) {
sort=new Sort(Direction.DESC,"createTime");
}else if("hottest".equals(sortType)) {
sort=new Sort(Direction.DESC,"hits");
}
提示:The constructor Sort(Sort.Direction, String) is undefined