public function EntityFieldQuery::propertyOrderBy

cis7 entity.inc public EntityFieldQuery::propertyOrderBy($column, $direction = 'ASC')
cle7 entity.inc public EntityFieldQuery::propertyOrderBy($column, $direction = 'ASC')
elmsmedia7 entity.inc public EntityFieldQuery::propertyOrderBy($column, $direction = 'ASC')
icor7 entity.inc public EntityFieldQuery::propertyOrderBy($column, $direction = 'ASC')
meedjum_blog7 entity.inc public EntityFieldQuery::propertyOrderBy($column, $direction = 'ASC')
mooc7 entity.inc public EntityFieldQuery::propertyOrderBy($column, $direction = 'ASC')

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.

File

includes/entity.inc, line 915

Class

EntityFieldQuery
Retrieves entities matching a given set of conditions.

Code

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

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.