Collections.sort(newList, new Comparator<PropertyValue>(){
public int compare(Value p1, Value p2) {
final int count1 = p1.getOrderId();
final int count2 = p2.getOrderId();
return (count1 < count2 ? 1 : -1);
}
});
转载于:https://blog.51cto.com/3834362/1304924