Using the fill command with stairs and anvils along with other items does not place them in the direction that you want them to be placed. Like with the anvil it is always faceing along the z coordinate no matter how i try to fill it. I can not get it to face along the x coordinate.
1.12.2:
1.13: