Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Tests are missing
Haskell expects ascending sort, which contradicts the description.
No sample tests in JS
JS Node 18. should be enabled
This comment is hidden because it contains spoiler information about the solution
You should specify if it's OK to alter the list in-place or if a new copy should be created. The default JS sort function will sort an array in-place, which can be surprising. But it also means that it doesn't need to return anything. It's perfectly valid to say
var l = [3,2,1].sort(); assert(l[0] === 1)
, because it mutatesl
rather than sorting into a new collection.