Function for finding the new tasks.
Task sorting.