Updated enumerator to iterate in ascending key order, instead of priority