When presented with these values in ParaView (5.6), the order is sorted. In previous versions, the order corresponded to the insertion order.
Looked at the vtkDataArraySelection doxygen, but can’t see anything indicating sort vs non-sort. There were a few (very good) changes to vtkDataArraySelection, but nothing that would seem to affect this. Is there anything within the ParaView interface to vtkDataArraySelection that could explain this?
Yes, ParaView sorts arrays by the name. The sorting happens in vtkPVDataSetAttributesInformation since it builds a map to store information about arrays.
Ok, that is good to know.
We ran into some issues with the internal sorting of the data in our custom reader, that we already resolved.
Previously, we sorted the data internally to show the most important variables first and the others afterwards in alphabetical order. Unfortunately, this does not seem to be possible anymore.
Do you know in which part of the code the sorting is happening? As we need to compile paraview from source (to compile our read), we would have the option to modify the part of the code to not sort the array. Would that be feasible?