Collections.sort(categories, new Comparator<Category>() {
@Override
public int compare(Category c1, Category c2) {
if (c1.getOrder() > c2.getOrder()) return 1;
if (c1.getOrder() < c2.getOrder()) return -1;
return 0;
}
});
Retrofit+Spring+Android 삽질하면서 배우기 (0) | 2015.07.04 |
---|