Turns out I didn't understand how SortedSet IComparers work :P
All checks were successful
continuous-integration/laminar-elessar Build 33 succeeded in 1 minute 3 seconds .

This commit is contained in:
Starbeamrainbowlabs 2019-03-28 20:35:28 +00:00
parent 141bccc03c
commit c9d2f1b939
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -11,7 +11,8 @@ namespace RhinoReminds
public int Compare(Reminder x, Reminder y) public int Compare(Reminder x, Reminder y)
{ {
return (int)(y.Time - x.Time).TotalMilliseconds; Console.WriteLine($"\t{x} / {y} = {x.Time.CompareTo(y.Time)}");
return x.Time.CompareTo(y.Time);
} }
} }
} }