diff --git a/app/controllers/my_modules_controller.rb b/app/controllers/my_modules_controller.rb index d4206d405..d00692ac7 100644 --- a/app/controllers/my_modules_controller.rb +++ b/app/controllers/my_modules_controller.rb @@ -244,10 +244,10 @@ class MyModulesController < ApplicationController @results = @results.page(params[:page]).per(Constants::RESULTS_PER_PAGE_LIMIT) @results = case @results_order - when 'old' then @results.order(created_at: :asc) + when 'old' then @results.order(updated_at: :asc) when 'atoz' then @results.order(name: :asc) when 'ztoa' then @results.order(name: :desc) - else @results.order(created_at: :desc) + else @results.order(updated_at: :desc) end end