That's not how you sort numbers, try your code with Node 12.
This comment is hidden because it contains spoiler information about the solution
Well there are 120 completions so I think it's your code's issue~~~TRY check for the type of input first +_+
Point granted about spoilers. Given that there's a flag to recognize best practices and mutation wasn't excluded in the description, what other point are you trying to make?
Please use spoiler flag next time, and mutating the input is a bad practice (this solution does that too).
iberryful & CodeChung I like your solutions. They hew to what I've learned from google's grasshopper app tutorials. How big does the data set have to be before it makes sense to use a "best practices" solution like yours? I've really liked learning about some of the faster methods I've seen on codewars like .sort(). It makes sense to use two lines of code on small datasets as opposed to always sticking with best practices.
No floats or non-positive integers will be passed.