Skip to content

Commit dab157f

Browse files
committed
Fix stability of twoended_merge!
1 parent 2465073 commit dab157f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SortingAlgorithms.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ function twoended_merge!(v::AbstractVector{T}, t::AbstractVector{T}, lo::Integer
714714
iAL += 1
715715
end
716716
oL +=1
717-
if lt(o,v[iAR], v[iBR])
717+
if !lt(o,v[iBR], v[iAR])
718718
t[oR] = v[iBR]
719719
iBR -= 1
720720
else

0 commit comments

Comments
 (0)