Issue #1161 changed comparator

Change-Id: I23f6a1a8b81ab6d97da8b57f7df9adb2d86e1962

Former-commit-id: c78fb26fbf [formerly c78fb26fbf [formerly 36748378cf53d2ab7c6ba1e49be195d90e2dc385]]
Former-commit-id: af27b562d7
Former-commit-id: 1c1ffc7793
This commit is contained in:
Dave Hladky 2012-09-11 09:39:43 -05:00
parent 8f3447ff9b
commit 6c4495a7e6

View file

@ -342,7 +342,7 @@ public class FFMPBasin implements ISerializableObject, Cloneable {
@Override
public int compare(Date o1, Date o2) {
// Null checks?
return (o2.before(o1) ? -1 : (o1.equals(o2) ? 0 : 1));
return (int)Math.signum(o2.getTime() - o1.getTime()) ;
}
});