Iterates over values in the set.
Get data from cache
Get data from cache (ignoring sorting)
Sort with a comparer function
Iterates over values in the set.