diff --git a/app/services/admins/school_base_statistic_service.rb b/app/services/admins/school_base_statistic_service.rb index cbad5d45a..6f3895c4c 100644 --- a/app/services/admins/school_base_statistic_service.rb +++ b/app/services/admins/school_base_statistic_service.rb @@ -22,7 +22,6 @@ class Admins::SchoolBaseStatisticService < ApplicationService count = schools.count.count # 根据排序字段进行查询 schools = query_by_sort_column(schools, params[:sort_by]) - schools.reorder("#{ params[:sort_by] != 0} desc") schools = custom_sort(schools, params[:sort_by], params[:sort_direction]) schools = schools.limit(page_size).offset(offset)