Skip to content

Commit 1bb23fc

Browse files
author
Justinas Pošiūnas
committed
orderBy fix
1 parent 9578807 commit 1bb23fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Common/ApiAbstract.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function orderBy($field, $order = 'ASC')
157157

158158
/**
159159
* Set where conditions
160-
*
160+
*
161161
* @param [type] $column
162162
* @param [type] $operator
163163
* @param [type] $value
@@ -211,7 +211,7 @@ protected function prepareParams()
211211

212212
if ( ! empty($this->_orders) && is_array($this->_orders)) {
213213
foreach ($this->_orders as $field => $order) {
214-
$params['order'][$field] = $order;
214+
$params['order_by'][$field] = $order;
215215
}
216216
}
217217

0 commit comments

Comments
 (0)