* VRFS-3178 - sort instrument by alpha

This commit is contained in:
Seth Call 2015-05-04 18:27:28 -05:00
parent 99fa64f4b0
commit 1a191f1b0b
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@
=content_tag(:div, :class => 'filter-element wrapper') do
-if :musician==filter_label || :jamtrack==filter_label
/ =content_tag(:div, 'Instrument:', :class => 'filter-element desc instrument-selector')
=select_tag("#{filter_label}_instrument", options_for_select([['Any Instrument', '']].concat(JamRuby::Instrument.all.collect { |ii| [ii.description, ii.id] })), {:class=> "easydropdown"}) |
=select_tag("#{filter_label}_instrument", options_for_select([['Any Instrument', '']].concat(JamRuby::Instrument.order('description').collect { |ii| [ii.description, ii.id] })), {:class=> "easydropdown"}) |
-if :feed==filter_label
/ =content_tag(:div, 'Include Dates:', :class => 'filter-element desc')
=select_tag("#{filter_label}_date", options_for_select(Search::DATE_OPTS), {:class => "easydropdown"})