data = {'Joe': [1, 'Joe', 'password', 'Joe@Email.com'], 'Toby': [2, 'Toby',
    'password', 'Toby@Email.com'], 'John': [4, 'John', 'password',
    'John@Email.com'], 'Julie': [3, 'Julie', 'password', 'Julie@Email.com']}
sorted_data = sorted(list(data.items()), key=operator.itemgetter(1))
for entry in sorted_data:
    pass
How to sort a dictionary in python by value when the value is a list and I want to sort it by the first index of that list