public static function sortedIterator(\Traversable $iterator, Comparator $comparator = null, $cloneItems = false)
    {
        return (new SortedIterator($iterator, $cloneItems))->setComparator($comparator);
    }