Android数字集合排序
遇到了记一下
List<Long> sortedKeys = new ArrayList<>();
sortedKeys.add((long) 2);
sortedKeys.add((long) 1);
sortedKeys.add((long) 4);
sortedKeys.add((long) 3);
Collections.sort(sortedKeys);
List<Long> sortedKeys = new ArrayList<>();
sortedKeys.add((long) 2);
sortedKeys.add((long) 1);
sortedKeys.add((long) 4);
sortedKeys.add((long) 3);
Collections.sort(sortedKeys);