You can't directly control the ordering, it's based on how the graph is constructed. So if you want to have A be saved before B, then B has to depend on A, i.e. B has to have a m:1 or 1:1 relationship with A where B is on the FK side.
Then assign A to B, e.g. assign Customer to Order, on its order.Customer property. This way, the graph is traversed, 'Customer' is seen as an entity on which 'order' depends, and Customer is therefore saved before Order.
This process is done using a topological sort of the graph, which makes sure there are no entities saved after the ones they depend on. I therefore don't see why you would want to disturb this process.
Why do you need the attributes to be saved before the relations ? According to your description, they don't depend on eachother?