Skip to content

Commit f571b27

Browse files
committed
Use args instead of kwargs in sortperm
1 parent 86f90bd commit f571b27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

base/sort.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1952,12 +1952,12 @@ function sortperm(A::AbstractArray;
19521952
scratch::Union{Vector{<:Integer}, Nothing}=nothing,
19531953
dims...) #to optionally specify dims argument
19541954
if rev === true
1955-
_sortperm(A; alg, order=ord(lt, by, true, order), scratch, dims...)
1955+
_sortperm(A, alg, ord(lt, by, true, order), scratch, dims)
19561956
else
1957-
_sortperm(A; alg, order=ord(lt, by, nothing, order), scratch, dims...)
1957+
_sortperm(A, alg, ord(lt, by, nothing, order), scratch, dims)
19581958
end
19591959
end
1960-
function _sortperm(A::AbstractArray; alg, order, scratch, dims...)
1960+
function _sortperm(A::AbstractArray, alg, order, scratch, dims)
19611961
if order === Forward && isa(A,Vector) && eltype(A)<:Integer
19621962
n = length(A)
19631963
if n > 1

0 commit comments

Comments
 (0)