I have a python dictionary like this:
dict = {"A1":"value1", "C1":"value3", "B1":"value2", "C2":"value6", "A2":"value4", "B2":"value5", "B10":"value7", "C10":"value8"}
(actually, keys are Excel cells address)
and I want to sort the dictionary like this:
sorted_dict = {
"A1":"value1",
"B1":"value2",
"C1":"value3",
"A2":"value4",
"B2":"value5",
"C2":"value6",
"B10":"value7",
"C10":"value8"
}
can anybody help me?
thanks.