mirror of
https://github.com/flextype/flextype.git
synced 2025-08-09 14:46:53 +02:00
feat(element-queries): fix orderBy() in the collect_filter #436
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user