18 lines
280 B
C#
18 lines
280 B
C#
|
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|