Use SortedDictionary for Highscores instead of a simple Dictionary

This commit is contained in:
runebaas 2019-05-12 17:29:52 +02:00
parent 3e3cbc257e
commit 4833ccd65a
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6
4 changed files with 6 additions and 6 deletions

View file

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@ -63,7 +63,7 @@ namespace Geekbot.net.Commands.User.Ranking
}
var guildId = Context.Guild.Id;
Dictionary<HighscoreUserDto, int> highscoreUsers;
SortedDictionary<HighscoreUserDto, int> highscoreUsers;
try
{
highscoreUsers = _highscoreManager.GetHighscoresWithUserData(type, guildId, amount);