diff --git a/src/lib/Hydra/Base/Controller/ListBuilds.pm b/src/lib/Hydra/Base/Controller/ListBuilds.pm index 8b74a6e2..7cbffae1 100644 --- a/src/lib/Hydra/Base/Controller/ListBuilds.pm +++ b/src/lib/Hydra/Base/Controller/ListBuilds.pm @@ -30,7 +30,7 @@ sub getJobStatus { {}, { '+select' => ["me.statusChangeId", "me.statusChangeTime"] , '+as' => ["statusChangeId", "statusChangeTime"] - , order_by => "statusChangeTime DESC" + , order_by => "coalesce(statusChangeTime, 0) desc" }); return $latest;