diff --git a/app/views/group_order_articles/_form.html.haml b/app/views/group_order_articles/_form.html.haml index e0921d4e6..3dcb422dd 100644 --- a/app/views/group_order_articles/_form.html.haml +++ b/app/views/group_order_articles/_form.html.haml @@ -4,7 +4,7 @@ = close_button :modal %h3= t('.amount_change_for', article: @order_article.article.name) .modal-body - = form.input :ordergroup_id, as: :select, collection: Ordergroup.undeleted.map { |g| [g.name, g.id] } + = form.input :ordergroup_id, as: :select, collection: Ordergroup.undeleted.order(:name).map { |g| [g.name, g.id] } = form.input :result, hint: I18n.t('group_order_articles.form.result_hint', unit: @order_article.article.unit) # Why do we need the full prefix? .modal-footer = link_to t('ui.close'), '#', class: 'btn', data: {dismiss: 'modal'}