Skip to content

Commit

Permalink
Add explicit sort(AbstractVector) definition
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman committed Aug 1, 2023
1 parent b43a5af commit dc7d33a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Compat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,7 @@ if VERSION < v"1.10.0-DEV.1404"
size == IsInfinite() && throw(ArgumentError("infinite iterator $v cannot be sorted"))
sort!(copymutable(v); kws...)
end
sort(v::AbstractVector; kws...) = sort!(copymutable(v); kws...) # for method disambiguation
Base.sort(::AbstractString; kws...) =
throw(ArgumentError("sort(::AbstractString) is not supported"))
Base.sort(::Tuple; kws...) =
Expand Down

0 comments on commit dc7d33a

Please sign in to comment.