sort dictionary `d` by key,od = collections.OrderedDict(sorted(d.items()))