I have a class called TopScores which contains two objects score and name. I need to sort them in descending order of score, but dont know how to do it :(
Here's the code
Code:
class TopScore():
def __init__(self):
self.Name = "-"
self.Score = 0
Basically, it saves high scores for a game. The Name is a string and Score is an integer.