code: public boolean containsFieldName(String field) {
      for (SortElement e : elements) {
        if (e.getName().equals(field)) {
          return true;
        }
      }
      return false;
    }
docs: True if field was added using {@link #add(String, Order)}