Skip to content

Commit beea81c

Browse files
committed
Use args instead of kwargs in sortperm
1 parent b418cc2 commit beea81c

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
@@ -1891,12 +1891,12 @@ function sortperm(A::AbstractArray;
18911891
scratch::Union{Vector{<:Integer}, Nothing}=nothing,
18921892
dims...) #to optionally specify dims argument
18931893
if rev === true
1894-
_sortperm(A; alg, order=ord(lt, by, true, order), scratch, dims...)
1894+
_sortperm(A, alg, ord(lt, by, true, order), scratch, dims)
18951895
else
1896-
_sortperm(A; alg, order=ord(lt, by, nothing, order), scratch, dims...)
1896+
_sortperm(A, alg, ord(lt, by, nothing, order), scratch, dims)
18971897
end
18981898
end
1899-
function _sortperm(A::AbstractArray; alg, order, scratch, dims...)
1899+
function _sortperm(A::AbstractArray, alg, order, scratch, dims)
19001900
if order === Forward && isa(A,Vector) && eltype(A)<:Integer
19011901
n = length(A)
19021902
if n > 1

0 commit comments

Comments
 (0)