Add keys in dictionary in SORTED order,sorted_dict = collections.OrderedDict(sorted(d.items()))