|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace RhinoReminds
|
|
{
|
|
public class CompareReminders : IComparer<Reminder>
|
|
{
|
|
public CompareReminders()
|
|
{
|
|
}
|
|
|
|
public int Compare(Reminder x, Reminder y)
|
|
{
|
|
return (int)(x.Time - y.Time).TotalMilliseconds;
|
|
}
|
|
}
|
|
}
|