Changed TaskHistory comparator