What I did for my high score table was :
- check if the score belongs on the table
- if it does, overwrite the bottom row of the table with the new score
- sort the table
Seemed simpler than trying to figure out which position it belongs in and reshuffling all the indices.
- check if the score belongs on the table
- if it does, overwrite the bottom row of the table with the new score
- sort the table
Seemed simpler than trying to figure out which position it belongs in and reshuffling all the indices.