@ -85,7 +85,7 @@ class Users::QuestionBankService
def custom_sort(relations, sort_by, sort_direction)
case sort_by
when 'updated_at' then
relations.order(updated_at: sort_direction)
relations.order("updated_at #{sort_direction}, id desc")
when 'name' then
relations.order("CONVERT(name USING gbk) COLLATE gbk_chinese_ci #{sort_direction}")
when 'contributor' then