|
@ -735,8 +735,8 @@ public class StatisticsEsService {
|
|
Collections.sort(bindArrayResult, new Comparator<JSONObject>() {
|
|
Collections.sort(bindArrayResult, new Comparator<JSONObject>() {
|
|
@Override
|
|
@Override
|
|
public int compare(JSONObject o1, JSONObject o2) {
|
|
public int compare(JSONObject o1, JSONObject o2) {
|
|
int a = o1.getString("total").length();
|
|
|
|
int b = o2.getString("total").length();
|
|
|
|
|
|
double a = o1.getDouble("total");
|
|
|
|
double b = o2.getDouble("total");
|
|
if (a > b) {
|
|
if (a > b) {
|
|
return -1;
|
|
return -1;
|
|
} else if(a == b) {
|
|
} else if(a == b) {
|