diff --git a/src/flextype/Support/helpers.php b/src/flextype/Support/helpers.php index f9f8c6bc..2487cc25 100644 --- a/src/flextype/Support/helpers.php +++ b/src/flextype/Support/helpers.php @@ -109,7 +109,7 @@ if (! function_exists('collect_filter')) { // Exec: order by if (isset($bind_order_by['order_by']['field']) && isset($bind_order_by['order_by']['direction'])) { - $collection->orderBy([$bind_order_by['order_by']['field'] => $direction[$bind_order_by['order_by']['direction']]]); + $collection->orderBy($bind_order_by['order_by']['field'], $direction[$bind_order_by['order_by']['direction']]); } // Exec: set max result