python numpy sort eigenvalues
np.linalg.eig will often return complex values. You may want to consider using np.sort_complex(eig_vals).
I am using linalg.eig(A) to get the eigenvalues and eigenvectors of a matrix. Is there an easy way to sort these eigenvalues (and associated vectors) in order?