This algorithm can be defined in Scratch 2.0 into a single block which calculates the high score list. Used in conjunction with 'global variables' this can be used to display a high score list of ALL the players who have ever played the game. It sorts a list of players and numbers (in a random order) into a list of descending highscores with the respective player clearly identified.