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.
This is a 6 kyu, not a total beginner kata, you should know how to sort and how builtin sort algorithms work.
You were taught wrong. The JS spec did not specify a stable sort until, as mentioned,
Node 12.x
, so using legacy Node versions, you have to take that into account. Teachers that overlooked this did you a disservice.If a homebrew bubble sort worked for you and library
sort
did not, it most probably means thatsort
was not applied correctly.What would be a reason to have
sort
at all if something as bad as bubble sort would work better that it?