Mensaje de error

Warning: count(): Parameter must be an array or an object that implements Countable en _api_make_match_member_link() (línea 1230 de /home/u295177857/domains/app01.inkastattoonewjersey.com/public_html/profiles/drupalapi/modules/contrib/api/api.formatting.inc).

public function EntityFieldQuery::propertyOrderBy

Orders the result set by an entity-specific property.

An $entity_type must be specified by calling EntityFieldCondition::entityCondition('entity_type', $entity_type) before executing the query.

If called multiple times, the query will order by each specified column in the order this method is called.

Parameters

$column: The column on which to order.

$direction: The direction to sort. Legal values are "ASC" and "DESC".

Return value

EntityFieldQuery The called object.

Archivo

drupal-7.x/includes/entity.inc, line 915

Class

EntityFieldQuery
Retrieves entities matching a given set of conditions.

Código

public function propertyOrderBy($column, $direction = 'ASC') {
  $this->order[] = array(
    'type' => 'property',
    'specifier' => $column,
    'direction' => $direction,
  );
  return $this;
}