diff --git a/base/sort.jl b/base/sort.jl index bfa3e1d0dc0e2..0f3499320b212 100644 --- a/base/sort.jl +++ b/base/sort.jl @@ -656,6 +656,8 @@ end defalg(v::AbstractArray) = DEFAULT_STABLE defalg(v::AbstractArray{<:Union{Number, Missing}}) = DEFAULT_UNSTABLE +defalg(v::AbstractArray{Missing}) = DEFAULT_UNSTABLE +defalg(v::AbstractArray{Union{}}) = DEFAULT_UNSTABLE function sort!(v::AbstractVector, alg::Algorithm, order::Ordering) inds = axes(v,1)