menuList.sort(Comparator.comparingInt(MenuPO::getSort));
Collections.sort(menuList, new Comparator<MenuPO>() { @Override public int compare(MenuPO o1, MenuPO o2) { return o1.getSort()-o2.getSort(); } });
翻转
Collections.reverse(list);
menuList.sort(Comparator.comparingInt(MenuPO::getSort));
Collections.sort(menuList, new Comparator<MenuPO>() { @Override public int compare(MenuPO o1, MenuPO o2) { return o1.getSort()-o2.getSort(); } });
翻转
Collections.reverse(list);