Symfony\Component\Finder\Iterator\SortableIterator::__construct
Constructor.
Signature
public function __construct(Traversable
$iterator,
integer|callback
$sort )
Parameters
$iterator
— \Traversable- The Iterator to filter
$sort
— object- The sort type (SORT_BY_NAME, SORT_BY_TYPE, or a PHP callback)