SortingIterator: usage example