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 .
All checks were successful
continuous-integration/laminar-elessar Build 33 succeeded in 1 minute 3 seconds .
This commit is contained in:
parent
141bccc03c
commit
c9d2f1b939
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue