code: @Override
  	public int compareTo(ApiObjectFieldDoc o) {
  		if(this.getOrder().equals(o.getOrder())) {
  			return this.getName().compareTo(o.getName());
  		} else {
  			return this.getOrder() - o.getOrder();
  		}
  	}
docs: This comparison is the same as the one in ApiObjectFieldDoc class