diff --git a/src/Sorter.php b/src/Sorter.php index a6ab0f3..cd21171 100644 --- a/src/Sorter.php +++ b/src/Sorter.php @@ -4,7 +4,6 @@ namespace DragonCode\SizeSorter; -use ArrayAccess; use DragonCode\SizeSorter\Enum\Group; use DragonCode\SizeSorter\Services\Collection; use DragonCode\SizeSorter\Services\GroupsDetector; @@ -16,7 +15,7 @@ class Sorter { - public static function sort(array|ArrayAccess|IC $items, string $column = 'value', ?array $groupsOrder = null): IC + public static function sort(iterable $items, string $column = 'value', ?array $groupsOrder = null): IC { return static::flatten( static::handle(collect($items), $column, Order::resolve($groupsOrder))