Condition 可以通过如下方法排序,但是若是通过一个字段值排序,同时又有翻页功能时,最好用两个字段值进行排序,因为用个字段排序会出现重复值,亲身经历。
1、condition.orderBy(temp[temp.length-1]).asc();
2、condition.orderBy(temp[temp.length-1]).desc();
Condition 可以通过如下方法排序,但是若是通过一个字段值排序,同时又有翻页功能时,最好用两个字段值进行排序,因为用个字段排序会出现重复值,亲身经历。
1、condition.orderBy(temp[temp.length-1]).asc();
2、condition.orderBy(temp[temp.length-1]).desc();