DEV Community

Discussion on: Understanding sort()

felix profile image
Felix Guerin Author

I hadn't thought of that! Indeed, I just tested it several times and it IS unstable if you don't return 0 for equal values. I edited the post to include it.

Thank you so much for this!

Thread Thread
hi_iam_chris profile image
Kristijan Pajtasev

NP it is really good post regardless :)