sort list of strings `xs` by the length of string,xs.sort(key=lambda s: len(s))