Skip to content

Commit

Permalink
ascending scores
Browse files Browse the repository at this point in the history
  • Loading branch information
bozmir committed Dec 20, 2024
1 parent 18b715c commit 6e7fa09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/FirebaseWebGL/Scoreboard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ void DisplayScores(string json)
scoreList.TryAdd(kvp.Key, score);
}
}
var sortedDictionary = scoreList.OrderByDescending(kvp => kvp.Value.score).ToList();
var sortedDictionary = scoreList.OrderBy(kvp => kvp.Value.score).ToList();
foreach (var kvp in sortedDictionary)
{
scoreboardText.text += $"Name: {kvp.Value.name}, Score: {kvp.Value.score.ToString()} \n";
Expand Down

0 comments on commit 6e7fa09

Please sign in to comment.