Skip to content

Commit

Permalink
Merge pull request #8568 from cfpb/ans_topics_alpha
Browse files Browse the repository at this point in the history
Alphabetize topic tags in sidebar
  • Loading branch information
anselmbradford authored Sep 11, 2024
2 parents 6c8a4d0 + 7259b1d commit 43af5d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ <h3 class="h4">
{% do tags_list.append({'text': item}) %}
{% endfor %}
{% import "v1/includes/molecules/tags.html" as tags with context %}
{{ tags.render(tags_list, false, true) }}
{{ tags.render(tags_list | sort(attribute='text'), false, true) }}
{% endmacro %}

{# ==========================================================================
Expand Down
4 changes: 2 additions & 2 deletions cfgov/v1/jinja2/v1/includes/molecules/related-metadata.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ <h3 class="h4">

{% macro _list(list) %}
{% import "v1/includes/molecules/tags.html" as tags with context %}
{{ tags.render(list.links, false, true) }}
{{ tags.render(list.links | sort(attribute='text'), false, true) }}
{% endmacro %}

{# ==========================================================================
Expand All @@ -98,7 +98,7 @@ <h3 class="h4">

{% macro _topics(list) %}
{% import "v1/includes/molecules/tags.html" as tags with context %}
{{ tags.render(page.related_metadata_tags().links, false, true) }}
{{ tags.render(page.related_metadata_tags().links | sort(attribute='text'), false, true) }}
{% endmacro %}

{# ==========================================================================
Expand Down

0 comments on commit 43af5d0

Please sign in to comment.