@Override
  public int compareTo(EncodedField other) {
    return field.compareTo(other.field);
  }
{@inheritDoc}

<p><b>Note:</b> This compares the method constants only, ignoring any associated code, because
it should never be the case that two different items with the same method constant ever appear
in the same list (or same file, even).
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/file/EncodedField.java