#903698 by jpstrikesback: EntityFieldQuery orderBy methods should default to ASC.
parent
9881f96c2c
commit
b737a40c76
|
@ -688,7 +688,7 @@ class EntityFieldQuery {
|
|||
* @return EntityFieldQuery
|
||||
* The called object.
|
||||
*/
|
||||
public function entityOrderBy($name, $direction) {
|
||||
public function entityOrderBy($name, $direction = 'ASC') {
|
||||
$this->order[] = array(
|
||||
'type' => 'entity',
|
||||
'specifier' => $name,
|
||||
|
@ -714,7 +714,7 @@ class EntityFieldQuery {
|
|||
* @return EntityFieldQuery
|
||||
* The called object.
|
||||
*/
|
||||
public function fieldOrderBy($field, $column, $direction) {
|
||||
public function fieldOrderBy($field, $column, $direction = 'ASC') {
|
||||
if (is_scalar($field)) {
|
||||
$field = field_info_field($field);
|
||||
}
|
||||
|
@ -751,7 +751,7 @@ class EntityFieldQuery {
|
|||
* @return EntityFieldQuery
|
||||
* The called object.
|
||||
*/
|
||||
public function propertyOrderBy($column, $direction) {
|
||||
public function propertyOrderBy($column, $direction = 'ASC') {
|
||||
$this->order[] = array(
|
||||
'type' => 'property',
|
||||
'specifier' => $column,
|
||||
|
|
Loading…
Reference in New Issue