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