|
@@ -11,7 +11,7 @@ public class SortByNum implements Comparator {
|
|
|
Row s2 = (Row) o2;
|
|
|
double s1int = 0;
|
|
|
double s2int = 0;
|
|
|
- //System.out.println("测试");
|
|
|
+ // System.out.println("测试");
|
|
|
if (StringUtils.isBlank(s1.getString("sequence"))) {
|
|
|
s1int = 999;
|
|
|
} else {
|
|
@@ -22,8 +22,8 @@ public class SortByNum implements Comparator {
|
|
|
} else {
|
|
|
s2int = Double.parseDouble(s2.getString("sequence"));
|
|
|
}
|
|
|
- // System.out.println(s1int + "," + s2int);
|
|
|
- if (s1int < s2int)
|
|
|
+ //System.out.println(s1int + "," + s2int);
|
|
|
+ if (s1int > s2int)
|
|
|
return 1;
|
|
|
return -1;
|
|
|
}
|