Sorting an Array using Instance Variables

First off, I’m going to apologize if the title makes no sense. I’m pretty new to Blueprints and I’m still trying to learn proper terminology.

So right now I have two blueprints.

A blueprint that teleports the camera to predefined “hotspots” every 5 seconds

And a blueprint that defines the locations (and rotations) for those hotspots in the level

Everything was working mostly fine, but I noticed that the order in which it was going from hotspot to hotspot seemed arbitrary. At the very least, it wasn’t going in order I wanted. So, I added an Integer to my Hotspot blueprint and made it visible so I could set the order manually in each instance of the blueprint.

Unfortunately, this does not behave as I expected. The only way the hotspots work is if they are set to 0, making it useless for ordering. Any idea what I’m doing wrong? Again, I’m not super blueprint-literate so I apologize if this doesn’t make a lot of sense.

Thanks!

Hi, just wanted to bump this as I’m still experiencing this issue, and really can not come up with an explanation as to why this is happening. I assume the issue is in my usage of the Array Insert node, but even then I’m only guessing.