The easiest way is probably to load all of the scores from the file into a custom window that has the -s switch set.
alias sortscores {
window -ls @scores
var %r, %c = 0, %c = $lines(scores.txt)
while (%c < %cc) {
inc %c
tokenize 32 $read(scores.txt,%c)
aline @scores $2 $1
}
echo -s Top Score: $line(@scores,1)
}
This is a simple (untested) code to sort the scores. The blue part may need to be modified depending on how your scores are stored.
-genius_at_work