= content_tag_for(:tr, f.object, class: 'nested-fields') do
  td = f.association :course_user, collection: current_course.course_users.with_approved_state,
                                   label:  false
  td = f.input :role, as: :select, label: false, collection: Course::GroupUser.roles.keys
  td = link_to_remove_association  t('.remove'), f

= content_tag_for(:tr, f.object, class: 'nested-fields') do
  td = f.association :course_user, collection: current_course.course_users.with_approved_state.order_alphabetically,
                                   label:  false
  td = f.input :role, as: :select, label: false, collection: Course::GroupUser.roles.keys
  td = link_to_remove_association  t('.remove'), f

Order group users by name
Order group users by name

Coursemology/coursemology2,Coursemology/coursemology2,cysjonathan/coursemology2,Coursemology/coursemology2,cysjonathan/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,cysjonathan/coursemology2,Coursemology/coursemology2