19 lines
331 B
C#
19 lines
331 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace RhinoReminds
|
|
{
|
|
public class CompareReminders : IComparer<Reminder>
|
|
{
|
|
public CompareReminders()
|
|
{
|
|
}
|
|
|
|
public int Compare(Reminder x, Reminder y)
|
|
{
|
|
Console.WriteLine($"\t{x} / {y} = {x.Time.CompareTo(y.Time)}");
|
|
return x.Time.CompareTo(y.Time);
|
|
}
|
|
}
|
|
}
|