diff options
author | Michael Larson <slioch@slioch.vyatta.com> | 2010-02-24 18:10:56 -0800 |
---|---|---|
committer | Michael Larson <slioch@slioch.vyatta.com> | 2010-02-24 18:10:56 -0800 |
commit | 842f188a1210962d8119af75ccb9b8b580b9c0bd (patch) | |
tree | 111e13e85964d265ca31159a1a6d82ed17440d91 /lib/Vyatta | |
parent | 4df177269ad6f4da23a87363a535f71c5c45f787 (diff) | |
download | vyatta-cfg-842f188a1210962d8119af75ccb9b8b580b9c0bd.tar.gz vyatta-cfg-842f188a1210962d8119af75ccb9b8b580b9c0bd.zip |
reapply term multinode sorting. fix for bug 5376
Diffstat (limited to 'lib/Vyatta')
-rwxr-xr-x | lib/Vyatta/ConfigLoad.pm | 3 |
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; } |