Skip to content

Commit f06de10

Browse files
Lilith HafnerLilith Hafner
authored andcommitted
fix doctests? I have no idea how
1 parent 70290d6 commit f06de10

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

base/sort.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,6 +1259,9 @@ show_type(io::IO, alg::Algorithm) = Base.show_type_name(io, typeof(alg).name)
12591259
show_type(io::IO, alg::Small{N}) where N = print(io, "Base.Sort.Small{$N}")
12601260

12611261
defalg(v::AbstractArray) = DEFAULT_STABLE
1262+
defalg(v::AbstractArray{<:Union{Number, Missing}}) = DEFAULT_UNSTABLE
1263+
defalg(v::AbstractArray{Missing}) = DEFAULT_UNSTABLE # for method disambiguation
1264+
defalg(v::AbstractArray{Union{}}) = DEFAULT_UNSTABLE # for method disambiguation
12621265

12631266
"""
12641267
sort!(v; alg::Algorithm=defalg(v), lt=isless, by=identity, rev::Bool=false, order::Ordering=Forward)

0 commit comments

Comments
 (0)