Use generic IComparable for message.

This commit is contained in:
Huo Yaoyuan
2017-05-16 21:46:22 +08:00
parent e911441394
commit aaaee5ed10
2 changed files with 3 additions and 13 deletions

View File

@ -23,7 +23,7 @@ namespace osu.Game.Online.Chat
[JsonProperty(@"channel_id")]
public int Id;
public readonly SortedList<Message> Messages = new SortedList<Message>((m1, m2) => m1.Id.CompareTo(m2.Id));
public readonly SortedList<Message> Messages = new SortedList<Message>(Comparer<Message>.Default);
//internal bool Joined;