VTK-3604 - optimalization: use same loop for evaluating for sort and preprocessing
VTK-3604 - optimalization: use same loop for evaluating for sort and preprocessing

vtkio/vtk,vtkio/vtk,vtkio/vtk,vtkio/vtk,vtkio/vtk,vtkio/vtk,vtkio/vtk,vtkio/vtk