Commit 91ddfe83 authored by Tugce Nur Tas's avatar Tugce Nur Tas
Browse files

sort semester_process_volunteers alphabetically

parent 7cc9a101
......@@ -37,6 +37,7 @@ class SemesterProcessVolunteersController < ApplicationController
authorize SemesterProcessVolunteer
@spvs = SemesterProcessVolunteer.index(Semester.parse(params[:semester])).page(params[:page])
@spvs_sorted = @spvs.sort { |spv1, spv2| spv1.volunteer.contact.full_name <=> spv2.volunteer.contact.full_name}
end
def show; end
......
......@@ -17,7 +17,7 @@ h1= t_title(:index)
th Letzte Bestätigung
tbody
- @spvs.each do |spv|
- @spvs_sorted.each do |spv|
tr
td.index-action-cell.hidden-print
= button_link icon_span(:edit), review_semester_semester_process_volunteer_path(spv), title: 'Bearbeiten'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment