Returns an iterator with will sort the elements according to
the supplied function and direction.
public orderedIterator ( Traversable $iterator, callable $function, boolean $isAscending ) : Pinq\Iterators\IOrderedIterator | ||
$iterator | Traversable | |
$function | callable | |
$isAscending | boolean | |
return | Pinq\Iterators\IOrderedIterator |