Skip to content

Commit 12d136b

Browse files
Lilith HafnerLilith Hafner
authored andcommitted
support 5-argument sort! for backwards compatability
1 parent 7457402 commit 12d136b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

base/sort.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1794,5 +1794,7 @@ function _sort!(v::AbstractVector, a::MergeSortAlg, o::Ordering;
17941794
return v
17951795
end
17961796

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

17981800
end # module Sort

0 commit comments

Comments
 (0)