Gaming32 / ArrayV

New home of https://github.com/MusicTheorist/ArrayVisualizer
MIT License
303 stars 47 forks source link

Stalin sort fails #106

Closed MetalBasket423 closed 3 months ago

MetalBasket423 commented 3 months ago

steps to reproduce: open ArrayV without tweaking any settings select stalin sort

expected behaviour: sort completes normally with no errors

actual behaviour: sort fails with error: The sort was unsuccessful; array[0] != validateArray[0]

Attached image of the error and ArrayV settings: Screenshot 2024-05-10 120950

Gaming32 commented 3 months ago

The whole point of Stalin sort is that it fails in all cases where the array isn't already sorted.