Skip to content

Commit

Permalink
Fix: Order by Name and not float(Name)
Browse files Browse the repository at this point in the history
  • Loading branch information
louisleroy5 committed Aug 26, 2019
1 parent cc321c9 commit d488b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archetypal/umi_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def recursive_json(obj):

for key in data_dict:
data_dict[key] = sorted(
data_dict[key], key=lambda x: float(x["Name"]) if "Name" in x else 1
data_dict[key], key=lambda x: x["Name"] if "Name" in x else "A"
)

class CustomJSONEncoder(json.JSONEncoder):
Expand Down

0 comments on commit d488b31

Please sign in to comment.