HISM’s instance arrays reorder on change. Say I have 100 instances (0-99). If I delete #98 the array will shift and #99 is now #98.
So If I’m doing multiple deletes I have to get a list of all the instances, sort them high to low and then delete. Largest index to smallest index.
Here’s a the loop for sorting. Keys are the indexes you want to delete.
