public APIConnectionRecordSortPredicate(String value) throws APIException {
  if (value.startsWith(DESCENDING_PREFIX)) {
    descending=true;
    value=value.substring(DESCENDING_PREFIX.length());
  }
  try {
    this.property=SortableProperty.valueOf(value).recordProperty;
  }
 catch (  IllegalArgumentException e) {
    throw new APIException(APIError.Type.BAD_REQUEST,String.format("Invalid sort property: \"%s\"",value));
  }
}

public APIConnectionRecordSortPredicate ( String value ) throws APIException { if ( value . startsWith ( DESCENDING_PREFIX ) ) { descending = true ; value = value . substring ( DESCENDING_PREFIX . length ( ) ) ; } try { this . property = SortableProperty . valueOf ( value ) . recordProperty ; } catch ( IllegalArgumentException e ) { throw new APIException ( APIError . Type . BAD_REQUEST , String . format ( "Invalid sort property: \"%s\"" , value ) ) ; } }
parses the given string value , determining the requested sort property and ordering . possible values consist of any valid property name , and may include an optional prefix to denote descending sort order . each possible property name is enumerated by the sortablevalue enum .
