Added comparator to Todo.