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 |
public function orderByDescending(callable $function) { return $this->constructScopedSelf($this->scheme->orderedIterator($this->elements, $function, false)); }