Ordering finished tasks by closedDate of the task when returning