Hi,
The contents of my dictionary is like so:-
>>> dict
{'6279': '45', '15752': '47', '5231': '30', '475': '40'}
I tried using the sort function on the keys. I noticed that the sort function doesn't work for the key -- 15752. Please find below:-
>>> [k for k in sorted(dict.keys())]
['15752', '475', '5231', '6279']
Could someone point out a way for me to work around this?
Thanks
My expected output is:-
['475', '5231', '6279', '15752']