I've imported a list from a .txt file that looks like this
[['George Washington'],
 ['John Adams'],
 ['Thomas Jefferson'],
 ['James Madison'],
 ['James Monroe'],
 ['John Quincy Adams'],
 ['Andrew Jackson'],
 ['Martin Van Buren'],
 ['William Henry Harrison'],
 ['John TyIer'],
...
I want to sort the list by the length of the first name in ascending order and display only the top 6, but nothing I tried seemed to work. Any suggestions?
 
     
     
    