Skip to content

Commit

Permalink
More on deep sorting dict
Browse files Browse the repository at this point in the history
  • Loading branch information
barseghyanartur committed Aug 17, 2021
1 parent 87765a8 commit f15a8db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ska/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def dict_to_ordered_list(

def dict_to_ordered_dict(obj):
if isinstance(obj, dict):
obj = OrderedDict(sorted(obj.items()))
obj = dict(sorted(obj.items()))
for k, v in obj.items():
if isinstance(v, dict) or isinstance(v, list):
obj[k] = dict_to_ordered_dict(v)
Expand Down

0 comments on commit f15a8db

Please sign in to comment.