So I have the permutations: $$\pi=\left( \begin{array}{ccc} 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 \\ 2 & 3 & 7 & 1 & 6 & 5 & 4 & 9 & 8 \end{array} \right)$$ $$\sigma=\left( \begin{array}{ccc} 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 \\ 9 & 5 & 6 & 8 & 7 & 1 & 2 & 4 & 3 \end{array} \right)$$
I found $\pi\sigma$ and $\sigma\pi$ to be
$$\pi\sigma=\left( \begin{array}{ccc} 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 \\ 5 & 6 & 2 & 9 & 1 & 7 & 8 & 3 & 4 \end{array} \right)$$
$$\sigma\pi=\left( \begin{array}{ccc} 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 \\ 8 & 6 & 5 & 9 & 4 & 2 & 3 & 1 & 7 \end{array} \right)$$.
So my question is: did I do these correctly or did I mix them up (i.e, the permutation matrix I have for $\pi\sigma$ is actually $\sigma\pi$)?
You mixed them up.If you look at the permutation matrix $\pi \sigma $ you have to look ,firstly at $\sigma$ and then at $\pi$.
For example,for the first column of $\pi \sigma$,it is:
$$1 \to 9, 9 \to 8$$