projects
/
uwc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59ef095
)
perl version behaves according to README
author
Richard Kojedzinszky
<krichy@tvnetwork.hu>
Fri, 26 Sep 2014 07:43:33 +0000
(09:43 +0200)
committer
Richard Kojedzinszky
<krichy@tvnetwork.hu>
Fri, 26 Sep 2014 07:43:37 +0000
(09:43 +0200)
uwc.pl
patch
|
blob
|
history
diff --git
a/uwc.pl
b/uwc.pl
index
e6b4176
..
fa5e1e1
100644
(file)
--- a/
uwc.pl
+++ b/
uwc.pl
@@
-9,4
+9,4
@@
while (<STDIN>) {
}
}
-print join("\n",
sort { $counts{$a} <=> $counts{$b}
} keys %counts) . "\n";
+print join("\n",
map { "$_ $counts{$_}" } sort { $counts{$a} <=> $counts{$b} || $a cmp $b
} keys %counts) . "\n";