Answer the question
In order to leave comments, you need to log in
How to sort the dictionary first by keys, and then by each key a list?
Goodnight. Suppose we have the following dictionary:
{
'foo': [
'val2',
'val1',
'val3'
],
'bar': [
'b1'
],
'mem': [
'ab1c',
'b1ca'
]
}
{
'bar': [
'b1'
],
'foo': [
'val1',
'val2',
'val3'
],
'mem': [
'ab1c',
'b1ca'
]
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question