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