Commit b737a40c authored by webchick's avatar webchick

#903698 by jpstrikesback: EntityFieldQuery orderBy methods should default to ASC.

parent 9881f96c
......@@ -688,7 +688,7 @@ public function propertyCondition($column, $value, $operator = NULL) {
* @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 @@ public function entityOrderBy($name, $direction) {
* @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 @@ public function fieldOrderBy($field, $column, $direction) {
* @return EntityFieldQuery
* The called object.
*/
public function propertyOrderBy($column, $direction) {
public function propertyOrderBy($column, $direction = 'ASC') {
$this->order[] = array(
'type' => 'property',
'specifier' => $column,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment