GetSources Result

So GetSources() returns a dictionary of (name, id) object pairs.

I’m wondering what these ids are a reference to.
From my experience they seem to be incremental in relation to the order of operation (perhaps even in relation to time of creation?).
Can I count on this?

Context:
I want to LoadState() then get a handle to the last object in the pipeline. Assuming I can’t use FindSource() because I don’t know the name of the object, I’m thinking I can compare those ids.

There are the globalIds, they are incremental and you can rely on this behavior to get the last created source.

However, I’m not sure that the last created source in the context of LoadState is always the same.