I am attempting to use sortcomparefunction to ensure a specific data entry is the last object of its parent. However when using the sortcomparefunction the objects being passed in are always the root object. is there another way i could sort my data to ensure the object named "Upload" is always at the bottom. Just to clarify im trying to sort the data held in objects 1 2 and 3 fo4r example. My data is structured as below
`rootObject -Object1-namedObject1 namedObject2 Upload Object2- stackObject Upload errorprofile
Object3-images
Upload
Video`