2018-12-27 12:29:41 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace RhinoReminds
|
|
|
|
|
{
|
|
|
|
|
public class CompareReminders : IComparer<Reminder>
|
|
|
|
|
{
|
|
|
|
|
public CompareReminders()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int Compare(Reminder x, Reminder y)
|
|
|
|
|
{
|
2019-03-11 21:21:18 +00:00
|
|
|
|
return (int)(y.Time - x.Time).TotalMilliseconds;
|
2018-12-27 12:29:41 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|