Skip to content

Commit dd8b0bb

Browse files
committed
sort tags alphabetically on tag page
1 parent d81641a commit dd8b0bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/data/tags.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<ul class="collapsible">
77
<% Rails.application.config.content_types[:all].each do |content_type| %>
88
<%
9-
grouped_tags = PageTag.where(page_type: content_type.name, user_id: current_user).group_by(&:tag)
9+
grouped_tags = PageTag.where(page_type: content_type.name, user_id: current_user).order('tag ASC').group_by(&:tag)
1010

1111
next if grouped_tags.values.length == 0
1212

0 commit comments

Comments
 (0)