Sort eigenvalues by real part first and then by imaginary part to make eigen_test more robust.
Update CMake version requirement.