connections.sort 方法使用Collections.sort(performers, new ComparatorPerformer() {public int compa
connections.sort 方法使用
Collections.sort(performers, new Comparator<Performer>() {public int compare(Performer o1, Performer o2) {return o1.getSortId().compareTo(o2.getSortId());}});? ?此时的比较o1,o2对象之间的属性,按照字母自然顺序比较 比如:a,b,c,d 