Skip to content

Commit a61ce2d

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sort/sortperm.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ function ds_sort_perm(ds::Dataset, colsidx, by::Vector{<:Function}, rev::Vector{
186186
_tmp, _ordr, _missat, _needrev, intable= _apply_by(x, idx, by[i], rev[i])
187187

188188
end
189-
if !_needrev && (eltype(_tmp) <: Union{Missing,Integer} || intable)
189+
if !_needrev && (eltype(_tmp) <: Union{Missing,Integer} || intable) && eltype(_tmp) !== Missing
190190
# further check for fast integer sort
191191
n = length(_tmp)
192192
if n > 1

0 commit comments

Comments
 (0)