When calculating P, for diagonalization, does the order of eigenvalues matter?
Solution 1:
The problem does not lie in the order of the eigenvalues or the order of the columns of $P$. What should be diagonal is $P^{-1}AP$, not $PAP^{-1}$. The order of the eigenvalues or eigenvectors do not matter, as long as the ordering of eigenvalues is consistent with the ordering of eigenvectors.