Sorting a dictionary whose value is in the form of list of dictionary.
I have something like:
myDict = {'First' :[{'Name':'Raj','Date':'28-March-2019 09:30'}],
'Second':[{'Name':'Ajay','Date':'12-April-2020 07:25'}],
'Third':[{'Name':'Jaya','Date':'12-April-2019 09:25'}]}
I want to sort this in ascending order based on Date.
Expected output:
myDict = {'First' :[{'Name':'Raj','Date':'28-March-2019 09:30'}],
'Third' :[{'Name':'Jaya','Date':'12-April-2019 09:25'}],
'Second':[{'Name':'Ajay','Date':'12-April-2020 07:25'}]}
I want the output in the form of dictionary