📜  java sort arraylist of arraylist - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:15.652000             🧑  作者: Mango

代码示例1
ArrayList> yourList = ...
Collections.sort(yourList, new Comparator>() {
    @Override
    public int compare(ArrayList one, ArrayList two) {
        return one.get(1).compareTo(two.get(1));
    }
});