diff --git a/src/Modifier/QueryFilter.php b/src/Modifier/QueryFilter.php index 32ba957c..f98f6a72 100644 --- a/src/Modifier/QueryFilter.php +++ b/src/Modifier/QueryFilter.php @@ -266,8 +266,8 @@ protected function applyIteratorSortBy(Iterator $iterator) $obj = new ArrayObject(iterator_to_array($iterator)); $obj->uasort(function ($row_a, $row_b) { $res = 0; - foreach ($this->iterator_sort_by as $compareRows) { - if (0 !== ($res = call_user_func($compareRows, $row_a, $row_b))) { + foreach ($this->iterator_sort_by as $compare) { + if (0 !== ($res = call_user_func($compare, $row_a, $row_b))) { break; } }