Touch-up: Sort the enums (tokens) in a stable manner for consistency in include files.

This commit is contained in:
Nigel Stewart 2014-09-27 11:34:59 +10:00
parent 6b5f533a7a
commit d04fd20cec

View File

@ -350,7 +350,12 @@ foreach my $spec (sort @speclist)
if (${$tokens}{$b} =~ /_/) { if (${$tokens}{$b} =~ /_/) {
1 1
} else { } else {
hex ${$tokens}{$a} <=> hex ${$tokens}{$b} if (hex ${$tokens}{$a} eq hex ${$tokens}{$b})
{
$a cmp $b
} else {
hex ${$tokens}{$a} <=> hex ${$tokens}{$b}
}
} }
} }
} }