Bad arguments to >

I was working on the leaderboard for my app, searching online i found this video "How to sort a list", and i wanted to add this function to the leaderboard, but when i try to add the score it gives me this error.The yt video

Here's the code

AI2 has new list sorting blocks, to save you the trouble of reinventing the wheel:


Here's an old style insertion sort:

Regarding your code, use Do It to see what is happening.

Bad arguments to >

err

look at the Block with the highlighted > your error is occurring there, possibly because your global record score is a List not an item in the list