diff options
author | Raphael Geissert <geissert@debian.org> | 2017-12-20 13:44:40 +0000 |
---|---|---|
committer | Raphael Geissert <geissert@debian.org> | 2017-12-20 13:44:40 +0000 |
commit | 14076aead9f7aff8c13af4a276e4401cdfbd542d (patch) | |
tree | 3b7d7d739dd48ef96969fb947a0ee2f307c66a5c /bin/check-new-issues | |
parent | c6be8c05871eb5b5f59fbf6e9bf54deff9448e1c (diff) |
Sort CVE issues numerically
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@58724 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/check-new-issues')
-rwxr-xr-x | bin/check-new-issues | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/check-new-issues b/bin/check-new-issues index 664397c8a9..16a177741f 100755 --- a/bin/check-new-issues +++ b/bin/check-new-issues @@ -199,7 +199,7 @@ print "\n"; if ($opts{l}) { #list only - foreach my $todo (reverse sort @todos) { + foreach my $todo (sort {$b <=> $a} @todos) { my $desc=description($todo); if ($desc) { my $lines=$opts{n} || 2; @@ -271,7 +271,7 @@ sub initial_completion { $attribs->{attempted_completion_function} = \&initial_completion; -foreach my $todo (reverse sort @todos) { +foreach my $todo (sort {$b <=> $a} @todos) { last unless present_issue($todo); } |