My dog had a No.2, but it wasn't flat on the ground, it stood on its end.
この場合、次のような言い方ができますよ。
ーMy dog had a No.2, but it wasn't flat on the ground, it stood on its end. I think something good might happen to me now.「うちの犬がうんちをしたら、地面に平らではなく、垂直に立っていた。何か良いことが起こるかもしれない」
うんちのことは No.2 と表現することもできます。
to stand on its end は、それの先または端を下にして立つ=垂直に立つことを意味します。
ご参考まで!