From 2cd7e2b2fb47622b0136461fff494181cd511299 Mon Sep 17 00:00:00 2001 From: teastep Date: Thu, 31 Jan 2008 02:33:16 +0000 Subject: [PATCH] More sorting by interface number git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8126 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Rules.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall-perl/Shorewall/Rules.pm b/Shorewall-perl/Shorewall/Rules.pm index 276269b15..a3ea4d7b6 100644 --- a/Shorewall-perl/Shorewall/Rules.pm +++ b/Shorewall-perl/Shorewall/Rules.pm @@ -1841,7 +1841,7 @@ sub generate_matrix() { } for my $typeref ( values %$dest_hosts_ref ) { - for my $interface ( keys %$typeref ) { + for my $interface ( sort { interface_number( $a ) <=> interface_number( $b ) } keys %$typeref ) { my $arrayref = $typeref->{$interface}; for my $hostref ( @$arrayref ) { next if $hostref->{options}{sourceonly};