From 40c8eea7c6ff4d9b91fed5bbd7ff8deb79c91170 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Tue, 2 Apr 2019 14:04:42 -0400 Subject: [PATCH] update Fieldtypes::sort() method for new argument per processwire/processwire-issues#841 --- wire/core/Fieldtypes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/core/Fieldtypes.php b/wire/core/Fieldtypes.php index e77c64e3..6981dd40 100644 --- a/wire/core/Fieldtypes.php +++ b/wire/core/Fieldtypes.php @@ -146,7 +146,7 @@ class Fieldtypes extends WireArray { public function eq($num) { $this->preload(); return parent::eq($num); } public function first() { $this->preload(); return parent::first(); } public function last() { $this->preload(); return parent::last(); } - public function sort($properties) { $this->preload(); return parent::sort($properties); } + public function sort($properties, $flags = null) { $this->preload(); return parent::sort($properties, $flags); } protected function filterData($selectors, $not = false) { $this->preload(); return parent::filterData($selectors, $not); } public function makeCopy() { $this->preload(); return parent::makeCopy(); } public function makeNew() { $this->preload(); return parent::makeNew(); }