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

@ -349,11 +349,16 @@ foreach my $spec (sort @speclist)
} else {
if (${$tokens}{$b} =~ /_/) {
1
} else {
if (hex ${$tokens}{$a} eq hex ${$tokens}{$b})
{
$a cmp $b
} else {
hex ${$tokens}{$a} <=> hex ${$tokens}{$b}
}
}
}
}
} keys %{$tokens})
{
if ($token =~ /^$prefix\_.*/i)