summaryrefslogtreecommitdiff
path: root/bin/lo-commit-stat
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2017-04-29 18:54:16 +0200
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2017-04-29 19:18:50 +0200
commit0b8cccdc20f7e9209de406ee1ec01aec8bfafceb (patch)
treefb42827f4b2d85b6cd4ae06689152ca8bb3733bd /bin/lo-commit-stat
parent9c83796f45e634afd770b772a16209e1dbed7068 (diff)
lo-commit-stat: improve sort in buglists (by number within a tracker)
Change-Id: I8eb5a3d3141fcc76bf5caffe0a7b30d5ec2b0c8c
Diffstat (limited to 'bin/lo-commit-stat')
-rwxr-xr-xbin/lo-commit-stat4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/lo-commit-stat b/bin/lo-commit-stat
index ca3aa638644b..4ad9f013935f 100755
--- a/bin/lo-commit-stat
+++ b/bin/lo-commit-stat
@@ -402,7 +402,9 @@ sub print_bugs($$$$)
{
my ($pbugs, $log, $wiki) = @_;
- foreach my $bug ( sort { $a cmp $b } keys %{$pbugs}) {
+ # sort alphabetically by bugzilla-type, but whithin that numerically
+ foreach my $bug ( sort { ($a =~ /(\D+)/)[0] cmp ($b =~ /(\D+)/)[0] ||
+ ($a =~ /(\d+)/)[0] <=> ($b =~ /(\d+)/)[0] } keys %{$pbugs}) {
my $summary = $pbugs->{$bug}{'summary'};
my $authors = "";