I have dictionary which is below
{
"id": "98992",
"data": [
{
"app": "Market",
"hash": "ajlfdfd",
"nTime": "2021-02-24 16:03:29.149638"
},
{
"app": "Market",
"hash": "dfds560",
"nTime": "2021-02-25 05:10:09.828576"
},
{
"app": "Market",
"hash": "dfdsfds73",
"nTime": "2021-02-23 15:52:51.954543"
}
]
}
You can see second is dictionary has to come, Latest has to come first
My expect out is same dictionary with Latest time at top
My psedo code is below
def test(mydict):
for key in sorted(mydict):
return (nTime, mydict['nTime'])
NB: I don't want to use Pandas