ListView sorting broken with numbers >32-bits

Report problems with documented functionality
User avatar
Synetech
Posts: 13
Joined: 28 Nov 2015, 16:30

ListView sorting broken with numbers >32-bits

10 Oct 2019, 10:38

ListView sorting doesn't work if the numbers in the list are bigger than 32-bits, the results look random (though probably just appear random but are correct for the first 32-bits of the numbers).
just me
Posts: 6527
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: ListView sorting broken with numbers >32-bits

11 Oct 2019, 03:11

Did you try it with AHK 64-bit?

Edit:
Integer: For sorting purposes, indicates that this column contains integers. To be sorted properly, each integer must be 32-bit; that is, within the range -2147483648 to 2147483647. If any of the values are not integers, they will be considered zero when sorting (unless they start with a number, in which case that number is used). Numbers may appear in either decimal or hexadecimal format (e.g. 0xF9E0).

LV_ModifyCol
lexikos
Posts: 6653
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: ListView sorting broken with numbers >32-bits

12 Oct 2019, 19:40

Evidently it is unsupported, not a bug.

Ordering of items considered "equal" (such as all being considered zero) by the qsort algorithm generally seems arbitrary. They are supposed to be equal, so it should not matter what order they are placed in.
User avatar
Synetech
Posts: 13
Joined: 28 Nov 2015, 16:30

Re: ListView sorting broken with numbers >32-bits

17 Oct 2019, 11:17

just me wrote:
11 Oct 2019, 03:11
Did you try it with AHK 64-bit?

Edit:
Integer: To be sorted properly, each integer must be 32-bit; that is, within the range -2147483648 to 2147483647. If any of the values are not integers, they will be considered zero when sorting (unless they start with a number, in which case that number is used).
LV_ModifyCol
Yes, I tried it with 64-bit AHK. It's strange because of the three columns, one looks like it's correct, but the other two are just strange results. It's odd that even the 64-bit version is limited to 32-bit, especially since even 32-bit programs are capable of handling 64-bit numbers. :|

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 17 guests