Code定义为String类型,现在如何让它们以顺序排列
收起
Collections.sort(list, (o1, o2) -> o1.getCode.compareTo(o2.getCode));
报告相同问题?