Skip to content

Commit 8353586

Browse files
committed
bug fix
1 parent 83288d1 commit 8353586

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
@@ -46,7 +46,7 @@ function fast_sortperm_int_threaded!(x, original_P, copy_P, ranges, rangelen, mi
4646
cnt = 1
4747
flag = false
4848
#Threads@threads now does not keep the order of the runs, we help starts be sorted before shaping ranges
49-
sort!(starts, by=x->x[1])
49+
sort!(starts, by=x->isempty(x) ? missing : x[1])
5050
@inbounds for i in 1:length(starts)
5151
for j in 1:length(starts[i])
5252
ranges[cnt] = starts[i][j]

0 commit comments

Comments
 (0)