Skip to content

Commit

Permalink
News and compat annotation for #28902 (sort! for multidimensional arr…
Browse files Browse the repository at this point in the history
…ays).
  • Loading branch information
fredrikekre committed Dec 1, 2018
1 parent a069a3a commit 9dd90bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Standard library changes
* `Future.copy!` has been moved to `Base` ([#29178]).
* New `ncodeunits(c::Char)` method as a fast equivalent to `ncodeunits(string(c))` ([#29153]).
* `mean` and `var` now handles the empty case ([#29033]).
* New `sort!(::AbstractArray; dims)` method that can sort the array along the `dims` dimension ([#28902]).

Compiler/Runtime improvements
-----------------------------
Expand Down
3 changes: 3 additions & 0 deletions base/sort.jl
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,9 @@ See [`sort!`](@ref) for a description of possible keyword arguments.
To sort slices of an array, refer to [`sortslices`](@ref).
!!! compat "Julia 1.1"
This function requires at least Julia 1.1.
# Examples
```jldoctest
julia> A = [4 3; 1 2]
Expand Down

0 comments on commit 9dd90bc

Please sign in to comment.