open_in_new
content_copy
new_list = sorted(a_list, key=lambda x: (len(x), x))