Collections.sort(mList, new Comparator<JinlyoTimeVO>() {
	@Override
	public int compare(JinlyoTimeVO s1, JinlyoTimeVO s2) {
		if (s1.getSorting() < s2.getSorting()) {
			return -1;
		} else if (s1.getSorting() > s2.getSorting()) {
			return 1;
		}
		return 0;
	}
});

 

글자를 정렬할때!

Collections.sort(tmpList, new Comparator<ItemVO>() {
	public int compare(ItemVO s1, ItemVO s2) {
		return s2.edate.compareTo(s1.edate);
	}
});

 

+ Recent posts