chiark / gitweb /
more stuff found lying about
[wordchain] / chkref
diff --git a/chkref b/chkref
index 4076d96593909ec295407d7ebc3e4e0ed0487b7a..ef7ed9e51f9357f707f16e2ac828eb0abde48a82 100755 (executable)
--- a/chkref
+++ b/chkref
@@ -39,7 +39,7 @@ sub parse_list ($) {
     push @chains, parse_chain(@words);
   }
   $f->close;
-  return join("|", @chains);
+  return join("|", sort { $a cmp $b } @chains);
 }
 
 die "usage: $0 A B" unless @ARGV == 2;