Maybe I'm missing something, but wouldn't the simplest method be to just use filter? Easy as pie.
/filter -ffctue 2 32 scores.txt scores.txt
This will sort the file according to the scores from highest to lowest.
Change the filename.
Thank you very much. That works perfectly
