SortDescending procedure
Prototype: |
procedure SortDescending; |
|
Description: |
SortDescending procedure sorts values of the IntegerList by descending |
|
Syntax: |
IntegerList.SortDescending; |
|
Part |
Description |
|
IntegerList |
A reference to an instance of a TIntegerListWrapper |
|
Return value: |
none |
|
var
intList : TIntegerListWrapper;
v, i : integer;
begin
intList := CreateIntegerList;
intList.Add(2);
intList.Add(4); // it will be found
intList.Add(8);
intList.Add(4);
intList.SortDescending;
for i:= 0 to (intList.Count - 1) do
begin
ShowMessage(IntToStr(intList.Value[i]));
end;
intList.Free;
end.
IntegerList now contains values in this order 8, 4, 4, 2.
See also:
Free; Add; Clear; Assign; Delete; Count; IndexOf; SortAscending; SortDescending; SortAscendingAndRemoveDuplicates; Value; Delimiter; DelimitedText; AsVarArray
© 2024 IFER-Monitoring and Mapping Solutions