From d04fd20cecd015ec2bfdf44230aef5151dc60248 Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Sat, 27 Sep 2014 11:34:59 +1000 Subject: [PATCH] Touch-up: Sort the enums (tokens) in a stable manner for consistency in include files. --- auto/bin/parse_spec.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/auto/bin/parse_spec.pl b/auto/bin/parse_spec.pl index df60ace..00fdde9 100755 --- a/auto/bin/parse_spec.pl +++ b/auto/bin/parse_spec.pl @@ -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} + } } } }