@@ -115,7 +115,7 @@ maybeview(v, k::Integer) = v[k]
115
115
"""
116
116
partialsort!(v, k; by=identity, lt=isless, rev=false)
117
117
118
- Partially sort the vector `v` in place so that the value at index `k` (or
118
+ Mutate the vector `v` so that the value at index `k` (or
119
119
range of adjacent values if `k` is a range) occurs
120
120
at the position where it would appear if the array were fully sorted. If `k` is a single
121
121
index, that value is returned; if `k` is a range, an array of values at those indices is
@@ -1625,10 +1625,11 @@ defalg(v) = DEFAULT_STABLE
1625
1625
"""
1626
1626
sort!(v; alg::Base.Sort.Algorithm=Base.Sort.defalg(v), lt=isless, by=identity, rev::Bool=false, order::Base.Order.Ordering=Base.Order.Forward)
1627
1627
1628
- Sort the vector `v` in place. A stable algorithm is used by default: the
1629
- ordering of elements that compare equal is preserved. A specific algorithm can
1630
- be selected via the `alg` keyword (see [Sorting Algorithms](@ref) for available
1631
- algorithms).
1628
+ Mutate the vector `v` so that it is sorted.
1629
+
1630
+ A stable algorithm is used by default: the ordering of elements that
1631
+ compare equal is preserved. A specific algorithm can be selected via the
1632
+ `alg` keyword (see [Sorting Algorithms](@ref) for available algorithms).
1632
1633
1633
1634
Elements are first transformed with the function `by` and then compared
1634
1635
according to either the function `lt` or the ordering `order`. Finally, the
@@ -1745,7 +1746,7 @@ end
1745
1746
Variant of [`sort!`](@ref) that returns a sorted copy of `v` leaving `v` itself unmodified.
1746
1747
1747
1748
When calling `sort` on the [`keys`](@ref) or [`values](@ref) of a dictionary, `v` is
1748
- collected and then sorted in place .
1749
+ collected and then sorted.
1749
1750
1750
1751
!!! compat "Julia 1.12"
1751
1752
Sorting `NTuple`s requires Julia 1.12 or later.
@@ -2289,7 +2290,7 @@ UIntMappable(T::Type, order::ReverseOrdering) = UIntMappable(T, order.fwd)
2289
2290
2290
2291
# ## Vectors
2291
2292
2292
- # Convert v to unsigned integers in place, maintaining sort order.
2293
+ # Convert v to unsigned integers in- place, maintaining sort order.
2293
2294
function uint_map! (v:: AbstractVector , lo:: Integer , hi:: Integer , order:: Ordering )
2294
2295
u = reinterpret (UIntMappable (eltype (v), order), v)
2295
2296
@inbounds for i in lo: hi
0 commit comments