"Python: Tuples/dictionaries as keys, select, sort",fruits.sort(key=lambda x: x.name.lower())