I have a 3 dimensional dictionary
d = ({k1:{k2:{k3:v}}}
and many more such keys....)
Now, I want to sort this dictionary by k3?
What is the best way to do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
will sort the keys for you … (since dictionaries are by definition unsorted)