BubbleSortB
From SCAR Divi Manual
Definition
procedure BubbleSortB(var Values: TIntegerArray);
Availability
SCAR Divi 3.11 > Current
Description
Uses the bubblesort sorting algorithm to sort a given set of integer values specified by the TIntegerArray Values. The values will be sorted large->small.
Example
var Values: TIntegerArray; i: Integer; begin Values := [9, 1, 8, 2, 4]; BubbleSortB(Values); for i := Low(Values) to High(Values) do WriteLn(Values[i]); end.
Output:
9 8 4 2 1