if you're trying to sort scores, you might be able to pull them sorted from the player list
isn't there options to sort based off of different values? ie BLID, name, score, admin status?
and if you only call it every so often, an insertion sort or binary sort could work well
if you're trying to keep something like a scoreboard updated, you could run a bubble sort once each time a player's score changes