python dictionary sort by value then alphabetically

sortednames=sorted(dictUsers.keys(), key=lambda x:x.lower())

Here is what the above code is Doing:
1. It’s creating a list of all the keys in the dictUsers dictionary.
2. It’s sorting the list of keys in alphabetical order.
3. It’s assigning the sorted list of keys to the sortednames variable.