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.
@zigi84, try again now.
Should be correct now. Try again.
The problem was because of strange behaviour in JS compared to Python. Forming a new list by extracting highest records, one by one, works perfectly fine in Python and gives us a properly sorted list, but JS for some reason forms a new array changing the order of the entries
:\
Damn it, issue is still not fixed. Hope the author will approve the fixed translation soon.
I believe it is the log that is incorrect. I added the
console.log(records)
inside the validation function to see what exactly it returns (I noticed this problem as well) and the result was a sorted array, which means the logger shuffles the arrays before outputting them.Marking as resolved because there's already one person who sorted it properly and passed the tests.
Also, it's not an issue, it's a question.
Resolving for now.
This comment is hidden because it contains spoiler information about the solution