Closed magical closed 1 year ago
I could not reproduce this, but there was a non-stable sort, so I will change it to a stable sort and add a test. Please tell me if that fixes it.
Reopening until fix is confirmed
Yep, that seems to fix it. Thanks!
If it helps, i built ivy with go1.17.6. I think the sorting algorithm has changed since then; that might be why you couldn't reproduce.
Yes, I think it has. A while back a similar issue in ivy was fixed the same way, but I missed this one.
testcase.ivy:
I would expect this to print 1 2 3 4, but using the latest version (0.2.9) I get:
Using an earlier version of ivy, i see the expected results. (Not sure which version exactly, but it's about a year old)