KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to sort a highscore file for my game I've written. Each highscore has a Name, Score and Date variable. I store each one in a List. Here is the struct that holds each highscores data. struct Highscore { public string Name; public int Score; public string Date; public string DataAsString() { return Name + "," + Score.ToString() + "," + Date; } } So how would I sort a List of type Highscores by the score variable of each object in the list? Any help is appreciated :D
Tags (comma-separated)
Save Edits
Cancel