DEV Community

Discussion on: Haskell Quicksort in JavaScript

 
sethcalebweeks profile image
Caleb Weeks

Yeah, that's true. But I guess what should you expect if you try to put a boolean, empty string, or an object in a number sorting algorithm... There is a reason why Array.sort coerces all items in the array to strings.