Collections.sort(resultList, new Comparator<HealthRecordRepeat>() {
@Override
public int compare(HealthRecordRepeat o1, HealthRecordRepeat o2) {
//return o1.para - o2.para; //升序
return Integer.parseInt(o2.getTargetb()) - Integer.parseInt(o1.getTargetb()); //降序
}
});