Description
Tested versions
Reproducible in v4.4.beta1.official [d33da79]
System information
Godot v4.4.beta1 - Windows 10 (build 19045) - Multi-window, 3 monitors - Vulkan (Forward+) - dedicated GeForce GTX 1050 - Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 threads)
Issue description
Description: When using an Enum in a match statement, autocomplete for each case shows enum in order of alphabetical name, along with other properties.
Expected: To have same behavior when autocomplete an enum elsewhere, it shows the enum names first, sorted in order of enum value.
What happens: Autocomplete shows all properties and methods of the enum that can be autocompleted. Mixed in with the result are the enum entry names, but in alphabetical order, not the numeric value order.
Steps to reproduce
To reproduce:
- create a enum where alphabetical sorting would be different than numeric. Example: var TestEnum : Enum {Z : 100, B: 200, P : 500, A : 999}.
- Create a match statement on a variable of that enum type, like
var aa : TestEnum
match aa:
TestEnum.
When you type "." to get the autocomplete, instead of seeing "Z, B, P, A", you will see "A, B, P, Z".
Compare to:
if aa == TestEnum.
The autocomplete will properly show Z, B, P, A