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.
Seems that this solution can't be used like a common solution, see tests here http://stackoverflow.com/a/34466248/3429127.
That means that you should avoid usage of ">" and "<" in comparator.
Just want to notice that JS native sort method affects on initial array.
If we want that list argument stays the same we need to make a copy of it inside the function (e. g. using slice()).
I saw it in a few different kata's solutions. I had the same question.. Correct one is to use substraction.
Came here to ask the same question.
This returns a boolean, which I would guess complies only with returning the 1 or the 0?
How exactly does this solution work?