Skip to content

Commit 70ec0fa

Browse files
committed
Update sortperm.jl
1 parent f3f21a9 commit 70ec0fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sort/sortperm.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ _date_value(x::Period) = Dates.value(x)
5757
_date_value(x) = x
5858

5959

60-
function _apply_by_f_barrier(x, by, rev) where T
60+
function _apply_by_f_barrier(x::AbstractVector{T}, by, rev) where T
6161
needrev = rev
6262
missat = :right
6363
CT = Core.Compiler.return_type(by_date_value, (nonmissingtype(T), ))
@@ -79,7 +79,7 @@ missatleftless(::Missing, y) = true
7979
missatleftless(x, ::Missing) = false
8080
missatleftless(::Missing, ::Missing) = false
8181

82-
function _apply_by!(_temp, x, idx, _by, rev, needrev, missat) where T
82+
function _apply_by!(_temp, x::AbstractVector{T}, idx, _by, rev, needrev, missat) where T
8383
Threads.@threads for j in 1:length(x)
8484
# if by(x) is Date or DateTime only grab its value
8585
@inbounds _temp[j] = _by(x[idx[j]])

0 commit comments

Comments
 (0)