From: Tom Clegg Date: Fri, 1 Aug 2014 01:49:51 +0000 (-0400) Subject: Fix display order of recent jobs and pipelines. closes #3148 X-Git-Tag: 1.1.0~2386 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/42d84bd014b3ab3a1906c9ba68b39835765fe705 Fix display order of recent jobs and pipelines. closes #3148 --- diff --git a/apps/workbench/app/controllers/application_controller.rb b/apps/workbench/app/controllers/application_controller.rb index f6c782d8f6..df57e9e71f 100644 --- a/apps/workbench/app/controllers/application_controller.rb +++ b/apps/workbench/app/controllers/application_controller.rb @@ -617,8 +617,8 @@ class ApplicationController < ActionController::Base (Job.limit(10) | PipelineInstance.limit(10)). sort_by do |x| - x.finished_at || x.started_at || x.created_at rescue x.created_at - end + (x.finished_at || x.started_at rescue nil) || x.modified_at || x.created_at + end.reverse end helper_method :my_project_tree