From ad72ad371f446036a020a0e55d5b96e2b6d51308 Mon Sep 17 00:00:00 2001 From: zhanx <zhanx@8638fb3e-16cb-4fca-ae20-7b5d299a9bcd> Date: Mon, 12 Oct 2009 06:52:43 +0000 Subject: [PATCH] fix bug 2873512 rvitals ouput on a group not sorted git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4347 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/PPCvitals.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/PPCvitals.pm b/perl-xCAT/xCAT/PPCvitals.pm index b92c62841..b6b21c9b5 100644 --- a/perl-xCAT/xCAT/PPCvitals.pm +++ b/perl-xCAT/xCAT/PPCvitals.pm @@ -373,9 +373,11 @@ sub all { @{voltage(@_)}, @{state(@_)}, @{power(@_)}, - @{lcds(@_)}, + @{lcds(@_)}, ); - return( \@values ); + + my @sorted_values = sort {$a->[0] cmp $b->[0]} @values; + return( \@sorted_values ); }