summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2017-04-29 18:54:16 +0200
committerAndras Timar <andras.timar@collabora.com>2017-08-04 12:05:09 +0200
commit991deefd33572202a3d0f1f324c7c7ec4f063f82 (patch)
treeaa8d0c3299f8e661c8d1ad1269e9c9235eb8e51b /bin
parent22b9e5e4f567097b9ee6d2a010bfd53ba55b070c (diff)
lo-commit-stat: improve sort in buglists (by number within a tracker)
Change-Id: I8eb5a3d3141fcc76bf5caffe0a7b30d5ec2b0c8c (cherry picked from commit 0b8cccdc20f7e9209de406ee1ec01aec8bfafceb) (cherry picked from commit 5f9da269510ea81bc346aba7364dc39f5e42a5fd)
Diffstat (limited to 'bin')
-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 = "";