diff --git a/xCAT-UI/js/monitor/gangliamon.js b/xCAT-UI/js/monitor/gangliamon.js index ffde97201..2fd4c4ddd 100644 --- a/xCAT-UI/js/monitor/gangliamon.js +++ b/xCAT-UI/js/monitor/gangliamon.js @@ -876,6 +876,7 @@ function drawGangliaNodesAreaPic(type, name) { var templength = 0; var showStr = ''; var nodename = ''; + var temparray; switch(type) { case 'blade': { @@ -898,10 +899,11 @@ function drawGangliaNodesAreaPic(type, name) { } $('#gangliaNodes').html(''); + temparray = arraypoint.sort(); templength = arraypoint.length; for (index = 0; index < templength; index++) { - nodename = arraypoint[index]; + nodename = temparray[index]; switch (nodeStatus[nodename]) { case 'ERROR': showStr = '
  • ';