按类中字段对list排序(从大到小)
Collections.sort(ClassA, new Comparator<ClassA,>() {
@Override
public int compare(ClassA,b1, ClassA,b2) {
return Long.valueOf(b2.getStoreAttentionNum())
.compareTo(Long.valueOf(b1.getStoreAttentionNum()));
}
});