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 ); }