试卷列表的时间排序

dev_bj
cxt 6 years ago
parent 2d8f82e36a
commit 9a20426e6a

@ -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

Loading…
Cancel
Save