I\'m working with a list of dict objects that looks like this (the order of the objects differs):
list
dict
[ {\'name\': \'Foo\', \'score
Just for fun, here is a purely functional approach:
>>> map(dict, dict(sorted(map(sorted, map(dict.items, s)))).items()) [{'score': 3, 'name': 'Bar'}, {'score': 2, 'name': 'Baz'}, {'score': 3, 'name': 'Foo'}]