안드로이드 java Arraylist 역순 정렬 소스 입니다.

Comparator comparator = Collections.reverseOrder();

Collections.sort(리스트(Arraylit), myComparator);

Collections.reverse(리스트(Arraylit));

private final static Comparator

myComparator= new Comparator() {
private final Collator collator = Collator.getInstance();
@Override
public int compare(AJContent object1 , AJContent object2) {
return collator.compare(object1.getNo(), object2.getNo());
 } };



+ Recent posts