@Override
  protected int compareTo0(Constant other) {
    CstMemberRef otherMember = (CstMemberRef) other;
    int cmp = definingClass.compareTo(otherMember.definingClass);

    if (cmp != 0) {
      return cmp;
    }

    CstString thisName = nat.getName();
    CstString otherName = otherMember.nat.getName();

    return thisName.compareTo(otherName);
  }
{@inheritDoc}

<p><b>Note:</b> This implementation just compares the defining class and name, and it is up to
subclasses to compare the rest after calling {@code super.compareTo0()}.
android/android_framework/dex-maker/src/main/java/com/android/dx/rop/cst/CstMemberRef.java