https://www.mathworks.com/help/matlab/ref/ordschur.html
This MATLAB function reorders the Schur factorization X = U*T*U' produced by [U,T] = schur(X) and returns the reordered Schur matrix TS and the orthogonal...
schur factorizationreordereigenvaluesmatlab