List<Student> list=获取你的数据集
Collections.sort(list, new Comparator<Student>(){
            /*
             * int compare(Person p1, Person p2) 返回一个基本类型的整型,
             * 返回负数表示:p1 小于p2,
             * 返回0 表示:p1和p2相等,
             * 返回正数表示:p1大于p2
             */
            public int compare(Student p1, Student p2) {
                //按照Person的均分进行升序排列
                if(p1.getAvg() < p2.getAvg()){
                    return 1;
                }
                if(p1.getAvg() == p2.getAvg()){
                    return 0;
                }
                return -1;
            }
        });
        return list;