You are viewing a single comment's thread. Return to all 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; }
Seems like cookies are disabled on this browser, please enable them to open this website
Big Sorting
You are viewing a single comment's thread. Return to all comments →
Java 15