Commit f7a7d6f0 authored by Pierre Arnaud's avatar Pierre Arnaud

Sort result by name

parent 982fe67c
......@@ -267,6 +267,7 @@ def organisms(request):
transport_logo=", ".join(transport_logo)
)
)
parse_result["transport"] = sorted(parse_result["transport"], key=lambda k: k['name'])
return dict(
id=id,
......@@ -448,6 +449,7 @@ def territories(request):
local=[]
)
result = sorted(result, key=lambda k: k['name'])
for el in result:
territories = el.get('territories', [])
if full_name_and_cp in territories \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment