Skip to content

Commit 85d87ef

Browse files
committed
Use args instead of kwargs in sortperm
1 parent 5b83d5c commit 85d87ef

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
@@ -1955,12 +1955,12 @@ function sortperm(A::AbstractArray;
19551955
scratch::Union{Vector{<:Integer}, Nothing}=nothing,
19561956
dims...) #to optionally specify dims argument
19571957
if rev === true
1958-
_sortperm(A; alg, order=ord(lt, by, true, order), scratch, dims...)
1958+
_sortperm(A, alg, ord(lt, by, true, order), scratch, dims)
19591959
else
1960-
_sortperm(A; alg, order=ord(lt, by, nothing, order), scratch, dims...)
1960+
_sortperm(A, alg, ord(lt, by, nothing, order), scratch, dims)
19611961
end
19621962
end
1963-
function _sortperm(A::AbstractArray; alg, order, scratch, dims...)
1963+
function _sortperm(A::AbstractArray, alg, order, scratch, dims)
19641964
if order === Forward && isa(A,Vector) && eltype(A)<:Integer
19651965
n = length(A)
19661966
if n > 1

0 commit comments

Comments
 (0)