Skip to content

Commit

Permalink
Touch-up: Sort the enums (tokens) in a stable manner for consistency …
Browse files Browse the repository at this point in the history
…in include files.
  • Loading branch information
Nigel Stewart committed Sep 27, 2014
1 parent 6b5f533 commit d04fd20
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion auto/bin/parse_spec.pl
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,12 @@ ($)
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}
}
}
}
}
Expand Down

0 comments on commit d04fd20

Please sign in to comment.