Now hscan scans through all the iterations and the array is sorted before consumed