Skip to content

Commit 4fa07cd

Browse files
authored
Add compat note for sortperm(x; dims) (#47657)
1 parent 3966d5c commit 4fa07cd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

base/sort.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,6 +1100,9 @@ ascending order.
11001100
See also [`sortperm!`](@ref), [`partialsortperm`](@ref), [`invperm`](@ref), [`indexin`](@ref).
11011101
To sort slices of an array, refer to [`sortslices`](@ref).
11021102
1103+
!!! compat "Julia 1.9"
1104+
The method accepting `dims` requires at least Julia 1.9.
1105+
11031106
# Examples
11041107
```jldoctest
11051108
julia> v = [3, 1, 2];
@@ -1163,6 +1166,9 @@ end
11631166
Like [`sortperm`](@ref), but accepts a preallocated index vector or array `ix` with the same `axes` as `A`. If `initialized` is `false`
11641167
(the default), `ix` is initialized to contain the values `LinearIndices(A)`.
11651168
1169+
!!! compat "Julia 1.9"
1170+
The method accepting `dims` requires at least Julia 1.9.
1171+
11661172
# Examples
11671173
```jldoctest
11681174
julia> v = [3, 1, 2]; p = zeros(Int, 3);

0 commit comments

Comments
 (0)