implemented ItemDataPtrComparator::operator()().