]> git.openstreetmap.org Git - rails.git/commitdiff
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 e70ec204e6446c5046a7276fcd5c39648206cd38..73f6420eab5cf122241fe3d0598439d5d9cd7e2c 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)