Error reordering Schur decomposition

Hello. I wish to suitably reorder the eigenvalues resulting from a generalised Schur matrix decomposition in an ascending fashion. This is the code.

using LinearAlgebra
A=randn(3, 3);
B=randn(3, 3);
(S, T, Qt, Z, eS, eT)=schur(A, B);
(S_re, T_re, Qt_re, Z_re, eS_re, eT_re)=ordschur(S, T, Qt, Z, eS, eT, select)

The error I get, however, is the following.

MethodError: no method matching ordschur(::Array{Float64,2}, ::Array{Float64,2}, ::Array{Float64,2}, ::Array{Float64,2}, ::Array{Complex{Float64},1}, ::Array{Float64,1}, ::BitArray{1})

[1] top-level scope at In[153]:6
[2] include_string(::Function, ::Module, ::String, ::String) at ./loading.jl:1091
[3] execute_code(::String, ::String) at /Users/Name/.julia/packages/IJulia/a1SNk/src/execute_request.jl:27
[4] execute_request(::ZMQ.Socket, ::IJulia.Msg) at /Users/Name/.julia/packages/IJulia/a1SNk/src/execute_request.jl:86
[5] #invokelatest#1 at ./essentials.jl:710 [inlined]
[6] invokelatest at ./essentials.jl:709 [inlined]
[7] eventloop(::ZMQ.Socket) at /Users/Name/.julia/packages/IJulia/a1SNk/src/eventloop.jl:8
[8] (::IJulia.var"#15#18")() at ./task.jl:356

The “ordschur” command does not seem to work. The Julia version I am using is 1.5.3. Thank you.

I think the usage is

using LinearAlgebra
A = randn(3, 3);
B = randn(3, 3);
G = schur(A, B);
(S, T, Qt, Z, eS, eT) = G
select = abs.(eT./eS).<1;
(S_re, T_re, Qt_re, Z_re, eS_re, eT_re) = ordschur(G, select)

Thank you for your response, but I had tried that too and the reordering did not seem to work at all.

Just in case, the reordering does work for a non-generalised Schur decomposition.

using LinearAlgebra
A=randn(3, 3);
G=ordschur(F, select)




3×3 Array{Float64,2}:
 -1.50325   0.653262   1.16942
  0.0      -0.402418  -0.743439
  0.0       0.0        0.349186


3×3 Array{Float64,2}:
 -0.402418  -0.425266  -0.497705
  0.0        0.349186  -1.38507
  0.0        0.0       -1.50325

Any help on making it work for the generalised case is appreciated. Thanks.