st= ['aa','zxczxc','a']st.sort(key=lambda x: len(x))print st
list1=['aa','zxczxc','a']list1.sort()print list1
print ['aa','zxczxc','a'].sort(key=lambda x: len(x))