aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-04-04 14:04:41 -0400
committerB. Watson <yalhcru@gmail.com>2021-04-04 14:04:41 -0400
commitebc8bc84498e690b46b1dfc74180838eec53353e (patch)
tree41430c185e4156e7094468d370de5ea310ddf654
parent6662684ba64e6aed244fb4e0019ac02e1196b17f (diff)
downloadtaipan-ebc8bc84498e690b46b1dfc74180838eec53353e.tar.gz
Reproducible build
-rw-r--r--messages.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/messages.pl b/messages.pl
index 1b81767..574d439 100644
--- a/messages.pl
+++ b/messages.pl
@@ -51,7 +51,7 @@ while(<DATA>) {
$total_in += (1 + length);
my $dict_used = 0;
- for my $dk (sort { length $b <=> length $a } keys %dictionary) {
+ for my $dk (sort { length $b <=> length $a || $a cmp $b } keys %dictionary) {
if(s/$dk/$dictionary{$dk}/g) {
$dict_used = 1;
}