app/controllers/simple_admin/resources_controller.rb in simpleadmin-1.0.1 vs app/controllers/simple_admin/resources_controller.rb in simpleadmin-1.0.2

- old
+ new

@@ -6,10 +6,10 @@ per_page = params[:per_page].to_i page = params[:page].to_i if params[:page].present? total = model_klass.count - resources = model_klass.limit(per_page) + resources = model_klass.order(id: :asc).limit(per_page) if params[:query].present? search_result = search(params[:query], model_klass, params[:model_attributes]) resources = search_result[:resources]