Browse Source

Turns out I didn't understand how SortedSet IComparers work :P

master
Starbeamrainbowlabs 4 years ago
parent
commit
c9d2f1b939
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
  1. 3
      RhinoReminds/CompareReminders.cs

3
RhinoReminds/CompareReminders.cs

@ -11,7 +11,8 @@ namespace RhinoReminds @@ -11,7 +11,8 @@ namespace RhinoReminds
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…
Cancel
Save