Consider this dictionary format, how do I sort this complex nested dictionary by The WEIGHT or HEIGHT key:
People = {
'person1': {
'name': 'John Cena',
'size': {
'height': 175,
'weight': 100
}
},
'person2': {
'name': 'Chuck Norris',
'size': {
'height': 180,
'weight': 90
}
},
'person3': {
'name': 'Jon Skeet',
'size': {
'height': 185,
'weight': 110
}
}
}