Use a hashtable for example.
HashTable.InsertKey("player name", player score - this should be a global/private variable)
After that, you can loop through all of it's elements(if i'm correct it's sorting automatically)
Text.SetText(Text.Text + NewLine + HashTable.CurrentKey + " " + HashTable.CurrentValue)
Note: you probably wont get an answer if you dont want to think, nobody wants to create your stuff, but lots of us would like to help. There is a difference.