diff --git a/base/sort.jl b/base/sort.jl index 307a515dad050..b9c22e396db2c 100644 --- a/base/sort.jl +++ b/base/sort.jl @@ -501,7 +501,7 @@ function sort!(v::AbstractVector, lo::Integer, hi::Integer, ::InsertionSortAlg, x = v[i] while j > lo y = v[j-1] - if !lt(o, x, y) + if !(lt(o, x, y)::Bool) break end v[j] = y