|
|
|
@ -879,7 +879,7 @@ class ExerciseController < ApplicationController
|
|
|
|
|
if @order == "student_id"
|
|
|
|
|
@exercise_users_list = @exercise_users_list.includes(:user => {:user_extensions => []}).order("user_extensions.student_id #{@b_sort}")
|
|
|
|
|
else
|
|
|
|
|
@exercise_users_list = @exercise_users_list.includes(:user => {:user_extensions => []}).order("#{@order} #{@b_sort}")
|
|
|
|
|
@exercise_users_list = @exercise_users_list.includes(:user => {:user_extensions => []}).order("#{@order} #{@b_sort}, id desc")
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|