From e8b115ca7afe37e8c18c02fc3cf17773e8bb3faa Mon Sep 17 00:00:00 2001 From: aignatov-bio Date: Mon, 17 May 2021 15:17:32 +0200 Subject: [PATCH] Change results sorting [SCI-5727] --- app/controllers/my_modules_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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