diff --git a/src/join.jl b/src/join.jl index 415d1a6..431cfe5 100644 --- a/src/join.jl +++ b/src/join.jl @@ -325,11 +325,11 @@ function sort_merge_idx(left::AbstractVector, right::AbstractVector, ::Val{DoLef @inbounds begin while (i <= length_left) && (j <= length_right) - if DoLeft && left[i] < right[j] + if left[i] < right[j] result[k] = left[i] idx_left[i] = k i += 1 - elseif DoRight && left[i] > right[j] + elseif left[i] > right[j] result[k] = right[j] idx_right[j] = k j += 1