- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
List<Integer> positionList = new ArrayList<Integer>(positions.keySet());
Collections.sort(positionList, new Comparator<Integer>() {
@Override
public int compare(Integer lhs, Integer rhs) {
if (lhs > rhs) {
return 1;
} else if (lhs < rhs) {
return -1;
}
return 0;
}
});