Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion base/sort.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,8 @@ end

Variant of [`sort!`](@ref) that returns a sorted copy of `v` leaving `v` itself unmodified.

Uses `Base.copymutable` to support immutable collections and iterables.
Returns something [`similar`](@ref) to `v` when `v` is an `AbstractArray` and uses
[`collect`](@ref) to support arbitrary non-`AbstractArray` iterables.

!!! compat "Julia 1.10"
`sort` of arbitrary iterables requires at least Julia 1.10.
Expand Down