script_utils.getObjects() sorts by IDs
Merge pull request #1202 from will-moore/scripts_obj_sorting_10745

script_utils.getObjects() sorts by IDs