Sort the enums in a stable manner

This commit is contained in:
omniavinco 2014-10-16 23:46:52 +09:00
parent bffebf81cc
commit 933e322dd5

View File

@ -156,7 +156,11 @@ sub output_tokens($$)
if (${$tbl}{$b} =~ /_/) {
1
} else {
hex ${$tbl}{$a} <=> hex ${$tbl}{$b}
if (hex ${$tbl}{$a} eq hex ${$tbl}{$b}) {
$a cmp $b
} else {
hex ${$tbl}{$a} <=> hex ${$tbl}{$b}
}
}
}
}