Sorting algorithms/Bubble sort: Difference between revisions
Content deleted Content added
Line 687:
<lang Lua>
function bubbleSort(A)
local itemCount=#A
local hasChanged
repeat
hasChanged = false
Line 693 ⟶ 694:
for i = 1, itemCount do
if A[i] > A[i + 1] then
end
end
|