The effect of where different types of cells are defined in Vtk on their internal index numbers

I have a Vtk file which has both line and facet cells, and even if the facet cell definition is placed before the line cell, when imported using paraview its internal index number is the line cell before the facet cell.Is this mechanism specified by vtk or is it caused by paraview parsing?