//进行冒泡排序。---大的数在后面。
for (int x = 0; x < arrParam.length - 1; x++) {
for (int y = 0; y < arrParam.length - x - 1; y++) {
if (arrParam[y] > arrParam[y + 1]) {
int temp = arrParam[y];
arrParam[y] = arrParam[y + 1];
arrParam[y + 1] = temp;
}
}
}
Integer[] arrParam = new Integer[listMapResult2.size() + 1];
for (int i = 0; i < listMapResult2.size(); i++) {
String arrStr = listMapResult2.get(i).get("nameArea").toString().substring(1, 2);
int integerArr = Integer.parseInt(arrStr);
arrParam[i] = integerArr;
}