• [deleted]
    + 0 comments

    Java 8:

    class Result implements Comparator<String>{
        
        public int compare(String str1, String str2){
            return (str1.length()==str2.length()) ? str1.compareTo(str2) : str1.length()-str2.length();
        }
    
        public static List<String> bigSorting(List<String> unsorted) {
            Collections.sort(unsorted, new Result());
            return unsorted;
        }
    }