@Override
  public int compareTo(NameValuePair other) {
    int result = name.compareTo(other.name);

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

    return value.compareTo(other.value);
  }
{@inheritDoc}

<p>Instances of this class compare in name-major and value-minor order.
android/android_framework/dex-maker/src/main/java/com/android/dx/rop/annotation/NameValuePair.java