1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-11 03:55:04 -05:00
k-9/src/com/fsck/k9/mail/MessageDateComparator.java
Jesse Vincent f31b2702a4 Massive rename to K9, step 1.
Conflicts:

	src/com/android/email/Email.java
2009-12-15 02:50:53 +00:00

29 lines
573 B
Java

package com.fsck.k9.mail;
import java.util.Comparator;
public class MessageDateComparator implements Comparator<Message>
{
public int compare(Message o1, Message o2)
{
try
{
if (o1.getSentDate() == null)
{
return 1;
}
else if (o2.getSentDate() == null)
{
return -1;
}
else
return o2.getSentDate().compareTo(o1.getSentDate());
}
catch (Exception e)
{
return 0;
}
}
}