>>> sortlengths([]) [] >>> sortlengths(["Don't", 'pull', 'my', 'leg!']) [2, 4, 4, 5] >>> sortlengths('I saw that island first when it was neither night nor morning.'.split()) [1, 2, 3, 3, 3, 4, 4, 5, 5, 6, 7, 8] >>> sortlengths(['', '1;2', '']) [0, 0, 3]