summaryrefslogtreecommitdiff
path: root/lib/Vyatta
diff options
context:
space:
mode:
authorMichael Larson <slioch@slioch.vyatta.com>2010-02-24 18:10:56 -0800
committerMichael Larson <slioch@slioch.vyatta.com>2010-02-24 18:10:56 -0800
commit842f188a1210962d8119af75ccb9b8b580b9c0bd (patch)
tree111e13e85964d265ca31159a1a6d82ed17440d91 /lib/Vyatta
parent4df177269ad6f4da23a87363a535f71c5c45f787 (diff)
downloadvyatta-cfg-842f188a1210962d8119af75ccb9b8b580b9c0bd.tar.gz
vyatta-cfg-842f188a1210962d8119af75ccb9b8b580b9c0bd.zip
reapply term multinode sorting. fix for bug 5376
Diffstat (limited to 'lib/Vyatta')
-rwxr-xr-xlib/Vyatta/ConfigLoad.pm3
1 files changed, 2 insertions, 1 deletions
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;
}