Dont move completed to end of manual ordered list

pull/384/head
Alex Baker 9 years ago
parent 238f7020e4
commit 3610705a8a

@ -78,9 +78,8 @@ public class SubtasksHelper {
}
query = query.replaceAll("ORDER BY .*", "");
query = query + String.format(" ORDER BY %s, %s, %s, %s",
Task.DELETION_DATE, Task.COMPLETION_DATE,
getOrderString(tagData, tlm), Task.CREATION_DATE);
query = query + String.format(" ORDER BY %s, %s, %s",
Task.DELETION_DATE, getOrderString(tagData, tlm), Task.CREATION_DATE);
if (limit > 0) {
query = query + " LIMIT " + limit;
}

@ -31,9 +31,8 @@ public abstract class SubtasksUpdater<T> extends AstridOrderedListUpdater<T> {
String query = filter.getSqlQuery();
query = query.replaceAll("ORDER BY .*", "");
query = query + String.format(" ORDER BY %s, %s, %s, %s",
Task.DELETION_DATE, Task.COMPLETION_DATE,
getOrderString(), Task.CREATION_DATE);
query = query + String.format(" ORDER BY %s, %s, %s",
Task.DELETION_DATE, getOrderString(), Task.CREATION_DATE);
query = query.replace(TaskCriteria.isVisible().toString(),
Criterion.all.toString());

Loading…
Cancel
Save