SortedIterator is a wrapper iterator that iterates over the wrapped iterator in a sorted order, the order controlled by a Comparator function provided at construction.
Creates new SortedIterator based on the base iterator and the comparator function
Parameters: aIterator - The original Iterator Parameters: aComparator - The comparator object