0

I have a list that consists of contacts. For example:

phones = [['Jerry', '(212) 745-3837'],['Elliot', '(212) 843-2724']]

I need to sort it alphabetically so that it is:

[['Elliot', '(212) 843-2724'],['Jerry', '(212) 745-3837']]

I'm a beginner so simple answers are appreciated! Thanks so much.

Bikramjeet Singh
  • 681
  • 1
  • 7
  • 22
Yxrym
  • 11

0 Answers0