fixed sorting of eigenvalues from largest to smallest