Sorting algorithms/Bubble sort: Difference between revisions

Corrected Actionscript implementation.
m (Fixed lang tags.)
(Corrected Actionscript implementation.)
Line 23:
while (!changed)
{
sortedchanged = true;
for (var i:int = 0; i < toSort.length - 1; i++)
Line 33:
toSort[i + 1] = tmp;
sortedchanged = truefalse;
}
}
Anonymous user