// Path: src/com/todotxt/todotxttouch/task/sorter/PredefinedSorters.java
// public class PredefinedSorters {
//     public static final Sorter<Task> DEFAULT = PRIORITY.ascending().then(ID.ascending());
//     public static final Sorter<Task> TEXT_ASC = TEXT.ascending().then(ID.ascending());
//     public static final Sorter<Task> DATE_ASC = DATE.ascending().then(ID.ascending());
//     public static final Sorter<Task> DATE_DESC = DATE.descending().then(ID.ascending());
// }


import com.todotxt.todotxttouch.task.sorter.PredefinedSorters;
import java.util.*;
		localRepository.purge();
		lastReload = null;
		lastWrite  = null;
		lastChange = null;
	}

	@Override
	public int size() {
		return tasks.size();
	}

	@Override
	public List<Task> getTasks() {
		return getTasks(null, null);
	}

	@Override
	public List<Task> getTasks(Filter<Task> filter, Comparator<Task> comparator) {
		ArrayList<Task> localTasks = new ArrayList<Task>();
		if (filter != null) {
			for (Task t : tasks) {
				if (filter.apply(t)) {
					localTasks.add(t);
				}
			}
		} else {
			localTasks.addAll(tasks);
		}

		if (comparator == null) {
// Path: src/com/todotxt/todotxttouch/task/sorter/PredefinedSorters.java
// public class PredefinedSorters {
//     public static final Sorter<Task> DEFAULT = PRIORITY.ascending().then(ID.ascending());
//     public static final Sorter<Task> TEXT_ASC = TEXT.ascending().then(ID.ascending());
//     public static final Sorter<Task> DATE_ASC = DATE.ascending().then(ID.ascending());
//     public static final Sorter<Task> DATE_DESC = DATE.descending().then(ID.ascending());
// }


// Path: src/com/todotxt/todotxttouch/task/JdotxtTaskBagImpl.java
import com.todotxt.todotxttouch.task.sorter.PredefinedSorters;
import java.util.*;

		localRepository.purge();
		lastReload = null;
		lastWrite  = null;
		lastChange = null;
	}

	@Override
	public int size() {
		return tasks.size();
	}

	@Override
	public List<Task> getTasks() {
		return getTasks(null, null);
	}

	@Override
	public List<Task> getTasks(Filter<Task> filter, Comparator<Task> comparator) {
		ArrayList<Task> localTasks = new ArrayList<Task>();
		if (filter != null) {
			for (Task t : tasks) {
				if (filter.apply(t)) {
					localTasks.add(t);
				}
			}
		} else {
			localTasks.addAll(tasks);
		}

		if (comparator == null) {
			comparator = PredefinedSorters.DEFAULT;