From 3d2fe9c9a4f0c1754fad5b789ed91cebd495f1cf Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 30 May 2019 15:57:07 -0700 Subject: stabilize sort order for entity metadata --- python/fatcat_web/templates/entity_macros.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/fatcat_web/templates/entity_macros.html b/python/fatcat_web/templates/entity_macros.html index b3819e0f..c47782a8 100644 --- a/python/fatcat_web/templates/entity_macros.html +++ b/python/fatcat_web/templates/entity_macros.html @@ -28,9 +28,9 @@ {% macro extra_metadata(extra) -%} -{% for (key, value) in extra.items() %} +{% for (key, value) in extra.items()|sort %} {% if key in ("ia", "crossref", "kbart", "arxiv", "jstor", "pubmed") and value is mapping and value %} - {% for (inner_key, inner_value) in value.items() %} + {% for (inner_key, inner_value) in value.items()|sort %}
{{ key }}.{{ inner_key }} {{ inner_value }} {% endfor %} -- cgit v1.2.3