• + 0 comments

    python3

    def bigSorting(unsorted):
        # Write your code here
        lengths = { len(i) for i in unsorted }
        s = []
        
        for l in sorted(list(lengths)):
            t = filter(lambda x: len(x) == l, unsorted)
            s += sorted(t)
            
        return s