@Override
  public int compareTo(@NotNull CliFunctionResult o) {
    if (memberIdOrName == null && o.memberIdOrName == null) {
      return 0;
    }
    if (memberIdOrName == null) {
      return -1;
    }
    if (o.memberIdOrName == null) {
      return 1;
    }

    return memberIdOrName.compareTo(o.memberIdOrName);
  }
This can be removed once all commands are using ResultModel.
geode-core/src/main/java/org/apache/geode/management/internal/functions/CliFunctionResult.java