Skip to content

Commit

Permalink
have to sort the top level kv pairs thanks @noblige
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkreiser committed Jun 26, 2017
1 parent 05efc1f commit b0debe3
Show file tree
Hide file tree
Showing 13 changed files with 1,253 additions and 1,253 deletions.
210 changes: 105 additions & 105 deletions locales/ca-ES.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion locales/canonicalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def sort_order(parent, k):
#and while doing so sort each subdict using the sorter above
def sort_dict(parent, d):
ordered = OrderedDict()
for k, v in sorted(d.iteritems(), key = lambda(k, v): sort_order(parent, k)):
for k, v in sorted(sorted(d.iteritems()), key = lambda(k, v): sort_order(parent, k)):
if isinstance(v, dict):
ordered[k] = sort_dict(k, v)
else:
Expand Down
Loading

0 comments on commit b0debe3

Please sign in to comment.