How to control the order of sibling nodes in JCR packages?
Hi,
I'm moving content from a legacy CMS to AEM using JCR packages. My .content.xml, by way of example, looks like this:
... </jcr:content><Android/><BlackBerry/><Chrome/><Doc Finder/><HTML5/><iOS/><Java/><Linux/><Mac/><Mobility Pack/><Offline Plug-in/><Online Plug-in/><Playbook/><Windows/><Windows 8/RT/><Windows CE/><Windows Phone 8/><Updater for Windows/></jcr:root>
The order of the subfolder siblings (<Java/><Linux/><Mac/> etc.), when the packages are imported to AEM, seems randomly changed. I know that the order of the files in the JCR zip is different, as I write the files to a directory structure on disk before I zip them up.
I guess my question is, how does AEM determine the order of the sibling nodes when a package is imported? I'm kinda tearing my hair out here, so would certainly appreciate any idea sharing!
Cheers,
Gordon