“cmd.scene_order” changes the ordering of scenes.
cmd.scene_order(string names, string sort, string location)
def scene_order(names,sort=0,location='current',quiet=1):
scene_order | cmd.scene | api