Collections.sort(list, new Comparator<ScRel>() {
    @Override
    public int compare(Object o1, Object o2) {
        if(o1.getScore() < o2.getScore()){//降序
            return 0;
        }else{
            return 1;
        }
    }
});

  

posted on 2016-11-28 19:56  Frand.D  阅读(174)  评论(0编辑  收藏  举报