Skip to content

Commit

Permalink
support 5-argument sort! for backwards compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilith Hafner authored and Lilith Hafner committed Oct 29, 2022
1 parent 7457402 commit 12d136b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/sort.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1794,5 +1794,7 @@ function _sort!(v::AbstractVector, a::MergeSortAlg, o::Ordering;
return v
end

# Support 5-argument version of sort! for backwards compatability
sort!(v::AbstractVector, lo::Integer, hi::Integer, a::Algorithm, o::Ordering) = _sort(v, a, o; lo, hi)

end # module Sort

0 comments on commit 12d136b

Please sign in to comment.