Maybe a bug in array.sort()

Started by imaginaryhuman, April 04, 2021, 00:00:09

Previous topic - Next topic

imaginaryhuman

not sure if this is a thing. i have an array of 520,000 strings, each a length up to 150 chars. When i sort them I get a chunk of missing rows at the end in the Y-Z area. Yet, when I add a comma and some digits on the end of each string, for some reason that gives me the full output. not sure if its a bug or just something i'm doing.

col

It would be an idea to post an example that shows the bug and some folks may look into it.
https://github.com/davecamp

"When you observe the world through social media, you lose your faith in it."

Derron

Do you provide a custom sort() function?
Using NG?

With NG (more current versions) default array sort of strings will NOT sort by name - but by memory address. Behaviour was "changed" ... dunno ... about a year ago or so. It is or was never intented to be ensured to have an ABC-sort.

So ... if you think something is missing: is the array.length different afterwards?


bye
Ron