diff --git a/app/controllers/case_logs_controller.rb b/app/controllers/case_logs_controller.rb index 7e8e00560..fa33ad5df 100644 --- a/app/controllers/case_logs_controller.rb +++ b/app/controllers/case_logs_controller.rb @@ -131,6 +131,7 @@ private query = query.public_send("filter_by_#{category}", values, current_user) end end + query = query.order(created_at: :desc) current_user.support? ? query.all.includes(:owning_organisation, :managing_organisation) : query end