From 9dd90bc55e782d7231734a557d8a1ec273316477 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Fri, 30 Nov 2018 18:39:21 +0100 Subject: [PATCH] News and compat annotation for #28902 (sort! for multidimensional arrays). --- NEWS.md | 1 + base/sort.jl | 3 +++ 2 files changed, 4 insertions(+) diff --git a/NEWS.md b/NEWS.md index 2d9b0a9eb11fd..80a16426dcca9 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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 ----------------------------- diff --git a/base/sort.jl b/base/sort.jl index 3c7105de94452..9391db27fa4b1 100644 --- a/base/sort.jl +++ b/base/sort.jl @@ -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]