From 28e09c4384d775acd65c4769d56a5bbe65abed11 Mon Sep 17 00:00:00 2001 From: Esteban De la Rosa Date: Thu, 11 Apr 2019 05:01:37 -0400 Subject: [PATCH] Fix orderBy method in Arr helper --- src/Arr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Arr.php b/src/Arr.php index 6b86df4..11b4588 100644 --- a/src/Arr.php +++ b/src/Arr.php @@ -144,7 +144,7 @@ public static function groupBy(array $items, $func): array * * @return array */ - public function orderBy(array $items, $attr, $order): array + public static function orderBy(array $items, $attr, $order): array { $sortedItems = []; foreach ($items as $item) {