Sorting algorithms/Heapsort: Difference between revisions

m
→‎{{header|VBA}}: fix formatting
m (→‎{{header|VBA}}: fix formatting)
Line 4,005:
While root * 2 + 1 <= eend
Dim child As Long : child = root * 2 + 1
If (child + 1 <= eend) Then
If (list(lb + child) < list(lb + child + 1)) Then
child = child + 1
End If
Anonymous user