Make sure HEAD branch is leftmost