Merge "Issue #1161 changed comparator" into development
Former-commit-id:802b43036e
[formerly802b43036e
[formerly 2d9bf3e785e72e8bc3b3a04d186d3c76ddc1eebb]] Former-commit-id:a691386102
Former-commit-id:9f1f054f4c
This commit is contained in:
commit
aa256d89e5
1 changed files with 1 additions and 1 deletions
|
@ -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()) ;
|
||||
}
|
||||
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue