Skip to content

Commit bfab4b0

Browse files
committed
fix rev sort
1 parent b4e38b4 commit bfab4b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TupleTools.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ function _split(t::NTuple{N}) where N
250250
end
251251

252252
@inline function _merge(t1::Tuple, t2::Tuple, lt, by, rev)
253-
if lt(by(first(t1)), by(first(t2))) || rev
253+
if lt(by(first(t1)), by(first(t2))) != rev
254254
return (first(t1), _merge(tail(t1), t2, lt, by, rev)...)
255255
else
256256
return (first(t2), _merge(t1, tail(t2), lt, by, rev)...)

0 commit comments

Comments
 (0)