Is there any way sort an array from lowest to highest

Pretty simple make 2 arrays one holds the score and the second holds the names (when adding or removing from the arrays makes sure to do the same to both of them), then just get the index of the max value remove it from the array with the names(place it in a new array that will be the final one for the names), and then remove the max number itself from the array with the scores(do the same here as the other one), now you have 2 arrays that are ordered by score, when you need the highest score take the index of 0 ( 1 2 …and etc) from both of them and you will have the name and the score.