From 20ea3eb09d1c9847984e812df34c12dbdd48789b Mon Sep 17 00:00:00 2001 From: David Gay Date: Wed, 26 May 2021 22:26:58 -0400 Subject: Sort some things --- app/views/characters/hearth/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/characters/hearth/index.html.erb') diff --git a/app/views/characters/hearth/index.html.erb b/app/views/characters/hearth/index.html.erb index a5522ad..82dfbe8 100644 --- a/app/views/characters/hearth/index.html.erb +++ b/app/views/characters/hearth/index.html.erb @@ -16,7 +16,7 @@

<%= ha.description %>

<% if @amenity_activities[ha.gid.to_sym] %> <%= form_with url: start_activity_path, method: :post do |f| %> - <%= f.select :id, @amenity_activities[ha.gid.to_sym].map { |a| [a.name, a.id] } %> + <%= f.select :id, @amenity_activities[ha.gid.to_sym].sort_by { |a| a.name }.map { |a| [a.name, a.id] } %> <%= f.submit "Go" %> <% end %> <% end %> -- cgit v1.2.3