Orders the result set by entity-generic metadata.
If called multiple times, the query will order by each specified column in the order this method is called.
Note: The "comment" and "taxonomy_term" entity types don't support ordering by bundle. For "taxonomy_term", propertyOrderBy('vid') can be used instead.
$name: 'entity_type', 'bundle', 'revision_id' or 'entity_id'.
$direction: The direction to sort. Legal values are "ASC" and "DESC".
EntityFieldQuery: The called object.
modules/ entity/ entity.query.inc, line 479
- Entity query API.
- Retrieves entities matching a given set of conditions.