[WikiPages] Sort tag relationship lists alphabetically (#771)

This commit is contained in:
Cinder 2024-10-22 15:05:58 -07:00 committed by GitHub
parent 2716ba29ca
commit cd69aa4911
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,19 +7,19 @@
<% end %>
<% if tag&.consequent_aliases&.present? %>
<p class="hint">
The following tags are aliased to this tag: <%= multiple_link_to_wiki_or_new(tag.consequent_aliases.map(&:antecedent_name)) %>
The following tags are aliased to this tag: <%= multiple_link_to_wiki_or_new(tag.consequent_aliases.map(&:antecedent_name).sort) %>
(<%= link_to "learn more", wiki_pages_path(title: "e621:tag_aliases") %>).
</p>
<% end %>
<% if tag&.antecedent_implications&.present? %>
<p class="hint">
This tag implicates <%= multiple_link_to_wiki_or_new(tag.antecedent_implications.map(&:consequent_name)) %>
This tag implicates <%= multiple_link_to_wiki_or_new(tag.antecedent_implications.map(&:consequent_name).sort) %>
(<%= link_to "learn more", wiki_pages_path(title: "e621:tag_implications") %>).
</p>
<% end %>
<% if tag&.consequent_implications&.present? %>
<p class="hint">
The following tags implicate this tag: <%= multiple_link_to_wiki_or_new(tag.consequent_implications.map(&:antecedent_name)) %>
The following tags implicate this tag: <%= multiple_link_to_wiki_or_new(tag.consequent_implications.map(&:antecedent_name).sort) %>
(<%= link_to "learn more", wiki_pages_path(title: "e621:tag_implications") %>).
</p>
<% end %>