From 09f42399e564550adb7f19c5541d94f193526b69 Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Tue, 24 Jun 2014 12:51:17 -0400 Subject: [PATCH] Job detail page refactor Draw host results in reverse order --- awx/ui/static/js/helpers/JobDetail.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/awx/ui/static/js/helpers/JobDetail.js b/awx/ui/static/js/helpers/JobDetail.js index 9954481e23..d322624075 100644 --- a/awx/ui/static/js/helpers/JobDetail.js +++ b/awx/ui/static/js/helpers/JobDetail.js @@ -927,14 +927,15 @@ function($rootScope, $log, UpdatePlayStatus, UpdateHostStatus, AddHostResult, Ge hostResults = JSON.parse(JSON.stringify(scope.jobData.plays[scope.activePlay].tasks[scope.activeTask].hostResults)); keys = Object.keys(hostResults); - keys.sort(function(a,b) { + /*keys.sort(function(a,b) { if (hostResults[a].name > hostResults[b].name) return 1; if (hostResults[a].name < hostResults[b].name) return -1; // a must be equal to b return 0; - }); + });*/ + keys.reverse(); while (idx < keys.length && idx < scope.hostResultsMaxRows) { result.push(hostResults[keys[idx]]);