From dc7d33a468c38447fcbb8df87740b62728c5cc1e Mon Sep 17 00:00:00 2001 From: mtfishman Date: Tue, 1 Aug 2023 09:20:48 -0400 Subject: [PATCH] Add explicit sort(AbstractVector) definition --- src/Compat.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Compat.jl b/src/Compat.jl index 8bc244917..3c0dc5a5a 100644 --- a/src/Compat.jl +++ b/src/Compat.jl @@ -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...) =