This ordering will lead to non-deterministic results (theoretically it would be deterministic, but it'll be seemingly random in practicE).

You should base yourself off of something else, as well.

I.e. use IDs as a baseline, then automated to figure out to bubble it up or not... or the other way around.