Sort tags alphabetically for consistent results
authorTom Hughes <tom@compton.nu>
Tue, 13 May 2014 18:21:01 +0000 (19:21 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 4 Jul 2014 18:24:25 +0000 (19:24 +0100)
app/helpers/browse_helper.rb

index e70ec20..73f6420 100644 (file)
@@ -90,7 +90,7 @@ private
   ]
 
   def icon_tags(object)
-    object.tags.find_all { |k,v| ICON_TAGS.include? k }
+    object.tags.find_all { |k,v| ICON_TAGS.include? k }.sort
   end
 
   def wiki_link(type, lookup)