This will ensure that deletes come before creates which are before upserts and that records that uses aliases always come after their target (though implicitly based on sorting types and not explicitly by looking at them.)