manager: sort running & finished tasks by time