Merge pull request #5172 from nonamethanks/sort-relationships
Tags: sort list of relationships alphabetically
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<% if tag.consequent_aliases.present? %>
|
||||
<p class="fineprint">
|
||||
The following tags are aliased to this tag:
|
||||
<%= to_sentence(tag.consequent_aliases.map { |ta| link_to_wiki ta.antecedent_name }) %>
|
||||
<%= to_sentence(tag.consequent_aliases.sort_by(&:antecedent_name).map { |ta| link_to_wiki ta.antecedent_name }) %>
|
||||
(<%= link_to_wiki "learn more", "help:tag_aliases" %>).
|
||||
</p>
|
||||
<% end %>
|
||||
@@ -27,7 +27,7 @@
|
||||
<% if tag.antecedent_implications.present? %>
|
||||
<p class="fineprint">
|
||||
This tag implicates
|
||||
<%= to_sentence(tag.antecedent_implications.map { |ti| link_to_wiki ti.consequent_name }) %>
|
||||
<%= to_sentence(tag.antecedent_implications.sort_by(&:consequent_name).map { |ti| link_to_wiki ti.consequent_name }) %>
|
||||
(<%= link_to_wiki "learn more", "help:tag_implications" %>).
|
||||
</p>
|
||||
<% end %>
|
||||
@@ -35,7 +35,7 @@
|
||||
<% if tag.consequent_implications.present? %>
|
||||
<p class="fineprint">
|
||||
The following tags implicate this tag:
|
||||
<%= to_sentence(tag.consequent_implications.map { |ti| link_to_wiki ti.antecedent_name }) %>
|
||||
<%= to_sentence(tag.consequent_implications.sort_by(&:antecedent_name).map { |ti| link_to_wiki ti.antecedent_name }) %>
|
||||
(<%= link_to_wiki "learn more", "help:tag_implications" %>).
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user