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 | 8106be294805917b570a1b514cd94a2fcd004781 (patch) | |
tree | 9b5366a3757cb2683dad3803b49892b421e93e99 /bin/check-new-issues | |
parent | 483d0ca9a6b9cc73eb01f5ac3859f6cc944f0867 (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); } |