Ad
  • Custom User Avatar

    @zigi84, try again now.

  • Custom User Avatar

    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 :\

  • Custom User Avatar

    Damn it, issue is still not fixed. Hope the author will approve the fixed translation soon.

  • Custom User Avatar

    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.

  • Custom User Avatar

    Also, it's not an issue, it's a question.

    Resolving for now.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution