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
1 changed files with 6 additions and 1 deletions

View File

@ -350,7 +350,12 @@ foreach my $spec (sort @speclist)
if (${$tokens}{$b} =~ /_/) {
1
} 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}
}
}
}
}