Make our default task order have a fixed time component so crittercism alamgamates crashes

pull/14/head
Tim Su 13 years ago
parent 40a9c07f01
commit cbb4df0c11

@ -112,7 +112,7 @@ public class SortHelper {
@SuppressWarnings("nls") @SuppressWarnings("nls")
public static Order defaultTaskOrder() { public static Order defaultTaskOrder() {
return Order.asc(Functions.caseStatement(Task.DUE_DATE.eq(0), return Order.asc(Functions.caseStatement(Task.DUE_DATE.eq(0),
DateUtilities.now() * 2, Functions.now() + "*2",
Task.DUE_DATE) + " + " + (2 * DateUtilities.ONE_DAY) + " * " + Task.DUE_DATE) + " + " + (2 * DateUtilities.ONE_DAY) + " * " +
Task.IMPORTANCE + " + 2*" + Task.COMPLETION_DATE); Task.IMPORTANCE + " + 2*" + Task.COMPLETION_DATE);
} }

Loading…
Cancel
Save