I'm trying to sort two lists of lists. Each one is a string.
list1 = [[john, 456, 789], [bill, 483, 293], [jack, 292, 483]]
list2 = [[bill, 483, 293], [john, 2982, 272] [jack, 237, 411]]
As you can see the two lists of lists have a different order, and each name has different numbers.
I'm looking to create a sorted version of each list, sorted by the name (the first index of each inner list) ONLY. So it would look like:
list1 = [[john, 456, 789], [bill, 483, 293], [jack, 292, 483]]
list2 = [[john, 2982, 272], [bill, 483, 293], [jack, 299, 411]]
How can i achieve this?