I have a dictionary that looks like this:
{
"dates":
{
"2020-01-01": "something 1",
"2019-04-20": "something 2",
"2020-03-15": "something 3",
"2019-12-31": "something 4"
}
}
Let's assume this dictionary is stored under a variable name my_dictionary
.
How do I sort my_dictionary["dates"]
by date (preferrably by a datetime format which I can define by myself)?
Thank you