This example uses dynamic array and variable structure notation to create a sorted score table.
You can test it randomizing the score table or manually entering data of your own, there is also possible to change the score slots quantity.
The example includes instructions to easily adapt it to your game.