mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-23 07:05:07 +00:00
Merge pull request #19 from omniavinco/master
Sort the enums in a stable manner
This commit is contained in:
commit
06db711223
@ -155,11 +155,15 @@ sub output_tokens($$)
|
|||||||
} else {
|
} else {
|
||||||
if (${$tbl}{$b} =~ /_/) {
|
if (${$tbl}{$b} =~ /_/) {
|
||||||
1
|
1
|
||||||
|
} else {
|
||||||
|
if (hex ${$tbl}{$a} eq hex ${$tbl}{$b}) {
|
||||||
|
$a cmp $b
|
||||||
} else {
|
} else {
|
||||||
hex ${$tbl}{$a} <=> hex ${$tbl}{$b}
|
hex ${$tbl}{$a} <=> hex ${$tbl}{$b}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} keys %{$tbl};
|
} keys %{$tbl};
|
||||||
print "\n";
|
print "\n";
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user