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 Nov 30, 2018
1 parent e019c39 commit 9381b77
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 @@ -66,6 +66,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 @@ -993,6 +993,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 9381b77

Please sign in to comment.