You have no control or ability to predict how Groups will be laid out on Basic and ClassicUI.
If you want to control the order or change any of the defaults you will have to put each Item in your sitemap individually.
I think the order is what ever order the Group’s members get stored in a HashMap which, assuming it is using a good hashing function, means they are stored randomly.