mktables: Reorder sort
authorKarl Williamson <public@khwilliamson.com>
Sun, 21 Aug 2011 20:04:43 +0000 (14:04 -0600)
committerKarl Williamson <public@khwilliamson.com>
Tue, 8 Nov 2011 15:09:12 +0000 (08:09 -0700)
This will be important in a later to commit so that we process the
leader of a group of tables before any of its followers.  Currently,
there hasn't been a problem with the sort order, but future changes make
it important.

lib/unicore/mktables

index c4a14d7..a36b0f4 100644 (file)
@@ -13775,6 +13775,11 @@ sub write_all_tables() {
                                 return 1 if $a->complement != 0;
                                 return -1 if $b->complement != 0;
 
+                                # Similarly, return a subservient table after
+                                # a leader
+                                return 1 if $a->leader != $a;
+                                return -1 if $b->leader != $b;
+
                                 my $cmp = length $ext_a <=> length $ext_b;
 
                                 # Return result if lengths not equal