Sort a Python list by dictionary key
I probably should have known how to do this innately, it’s that simple, but I didn’t. So for the benefit of fellow feckless Pythonistas, here is how to sort a list of dictionaries based on a key in the dictionary. Say I have a list of dictionaries where each dictionary represents data for a person…