So I have a few lines of code that put a users name and score into a file:
hs = open("hst.txt", "a")
hs.write(name + " ")
hs.write(str(score) + "\n")
hs.close()
Without using a function already in python can someone show me how to perform a sort (preferably a simple sort) on this to put it in order from largest numbered score to smallest?