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.
I also try to use sort to solve this Kata, but I fail. If there are two zero at the beginning, only one of them will be moved.
You can get my code by searching 'sort' in the browser.
But have you tried
console.log
? You should be able to debug it yourself afterwards.You're using the wrong operator to sort numbers there.
Wrong solution? If you're asking for help, provide more information than "it's not working".