In the Scan class editor, all scan classes are sorted alphabetically.
But in Tag editor dropdown for choosing Scan Class they are shown unsorted in some weird order and it’s very difficult to find the right scan class if you have many of them.
The scan classes are stores in the SQLTSCANCLASS table, which is updated whenever any changes to scan classes happen. My guess is the editor retrieves and sorts on the NAME column, whereas the scan class selector for a tag is sorted by the SQLTSCANCLASS_ID column.
OK, I found it in internal DB in the Ignition gateway.
But there is no logic in this…
When you export the scan classes in CSV file, they are sorted by NAME.
So I exported all scan classes, delete all scan classes from Scan Class editor, save, import back from CSV and it’s the same…
When you look at the internal DB (select * from SQLTSCANCLASS), you can see the ID column and NAME column are OK, but in the dropdown, in the Tag Editor, it’s still everything messed up…
Did you restart the server after importing the scan classes? Changes to the internal database that do not go through the ORM need a service restart to take effect.