ComparisonResult IndexPath::compare(const Any & ref) const { if (isIdenticalTo(ref)) { return OrderedSame; } if (ref.isKindOf(*this)) { return m_impl.compare(ref_cast<IndexPath>(ref).m_impl); } return OrderedDescending; }