首先创建一个定义排序规则的类,实现Comparator接口(用来定义比较规则的接口),实现compare方法,来定义规则class Sort implements Comparator{public int compare(Object o1,Object o2){T t1(T)o1;T t2(T)02;if(t1.sort>t2.sort){return 1;}else if(t1.sortt2.sort){if(t1.pubulishiTime>t2.pubulishi……