From 842f188a1210962d8119af75ccb9b8b580b9c0bd Mon Sep 17 00:00:00 2001 From: Michael Larson Date: Wed, 24 Feb 2010 18:10:56 -0800 Subject: reapply term multinode sorting. fix for bug 5376 --- lib/Vyatta/ConfigLoad.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Vyatta/ConfigLoad.pm b/lib/Vyatta/ConfigLoad.pm index 8ffc9c0..44c1089 100755 --- a/lib/Vyatta/ConfigLoad.pm +++ b/lib/Vyatta/ConfigLoad.pm @@ -206,7 +206,8 @@ sub getSortedMultiValues { my $key = "$path_str $_"; push @list, [ $_, $node_order{$key} ]; } - my @slist = map { ${$_}[0] } @list; + my @slist = sort { ${$a}[1] <=> ${$b}[1] } @list; + @slist = map { ${$_}[0] } @slist; return @slist; } -- cgit v1.2.3