sorting by eigenvectors implemented