A little more determinacy in our sorting
authorNicholas Clark <nick@ccl4.org>
Thu, 20 Jan 2005 13:20:50 +0000 (13:20 +0000)
committerNicholas Clark <nick@ccl4.org>
Thu, 20 Jan 2005 13:20:50 +0000 (13:20 +0000)
p4raw-id: //depot/perl@23835

autodoc.pl

index c10640835ddadda7e7fd44562c9cdbed279e0689..6126f9ff65a3445df3f68e4901691e6885985057 100644 (file)
@@ -220,7 +220,8 @@ my $key;
 for $key (sort { uc($a) cmp uc($b) || $a cmp $b } keys %apidocs) {
     my $section = $apidocs{$key}; 
     print DOC "\n=head1 $key\n\n=over 8\n\n";
-    for my $key (sort { uc($a) cmp uc($b); } keys %$section) {
+    # Again, fallback for determinacy
+    for my $key (sort { uc($a) cmp uc($b) || $a cmp $b } keys %$section) {
         docout(\*DOC, $key, $section->{$key});
     }
     print DOC "\n=back\n";