• + 0 comments

    Java 15

        public static List<String> bigSorting(List<String> unsorted) {
            unsorted.sort((a, b) -> {
                if (a.length() != b.length()) {
                    return Integer.compare(a.length(), b.length());
                }
                return a.compareTo(b);
            });
            return unsorted;
        }