对List的升序与降序排列函数sort()

        Collections.sort(list);      //升序排列
        Collections.sort(list,Collections.reverseOrder());                 //降序排列


你可能感兴趣的:(list)