Use function that accounts for due time when sorting by date

pull/14/head
Sam Bosley 12 years ago
parent 254df0f822
commit dc2b6ca15f

@ -92,7 +92,7 @@ public class SortHelper {
break; break;
case SORT_DUE: case SORT_DUE:
order = Order.asc(Functions.caseStatement(Task.DUE_DATE.eq(0), order = Order.asc(Functions.caseStatement(Task.DUE_DATE.eq(0),
DateUtilities.now()*2, Task.DUE_DATE) + "+" + Task.IMPORTANCE + Functions.now() + "*2", adjustedDueDateFunction()) + "+" + Task.IMPORTANCE +
"+3*" + Task.COMPLETION_DATE + ", " + Task.TITLE); "+3*" + Task.COMPLETION_DATE + ", " + Task.TITLE);
break; break;
case SORT_IMPORTANCE: case SORT_IMPORTANCE:

Loading…
Cancel
Save