I want to sort this dictionary according to age
I have tried some ways to sort this like create a list of the age the sort that but then i won't able to assign the age to its corresonding index
students = {
'a': {
"age":18,
"class": "IV"
},
'b': {
"age":19,
"class": "IV"
},
'c': {
"age":17,
"class": "IV"
},
'd': {
"age":17.5,
"class": "IV"
},
'e': {
"age":19.5,
"class": "IV"
},
}