Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed numeric sorting to lexically resolving issue #851 #852

Merged
merged 2 commits into from
Nov 27, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Sort ASNs within ASN sets.
  • Loading branch information
matsduf committed Nov 26, 2020
commit 77d1737266d4c2bf00a273133df55b8dd78804ed
4 changes: 2 additions & 2 deletions lib/Zonemaster/Engine/Test/Connectivity.pm
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ sub connectivity03 {
}
);
push @v4asns, @{$asnref};
push @v4asnsets, join( q{,}, sort @{$asnref} );
push @v4asnsets, join( q{,}, sort { $a <=> $b } @{$asnref} );
}
if ( $prefix ) {
push @results,
Expand Down Expand Up @@ -375,7 +375,7 @@ sub connectivity03 {
}
);
push @v6asns, @{$asnref};
push @v6asnsets, join( q{,}, sort @{$asnref} );
push @v6asnsets, join( q{,}, sort { $a <=> $b } @{$asnref} );
}
if ( $prefix ) {
push @results,
Expand Down