mirror of
https://github.com/nigels-com/glew.git
synced 2025-02-16 21:58:00 +00:00
Sort the enums in a stable manner
This commit is contained in:
parent
bffebf81cc
commit
933e322dd5
@ -156,7 +156,11 @@ sub output_tokens($$)
|
|||||||
if (${$tbl}{$b} =~ /_/) {
|
if (${$tbl}{$b} =~ /_/) {
|
||||||
1
|
1
|
||||||
} else {
|
} 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}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user