1
0
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:
Awilum
2020-07-23 23:40:34 +03:00
parent 9b9649ed9f
commit b4db9ac94c

View File

@@ -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