mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 18:09:27 +02:00
+ added TList.Sort overload with a sorting algorithm parameter
git-svn-id: trunk@41169 -
This commit is contained in:
parent
c24d525b9f
commit
e8dc54c768
@ -340,6 +340,7 @@ Type
|
||||
function Remove(Item: Pointer): Integer;
|
||||
procedure Pack;
|
||||
procedure Sort(Compare: TListSortCompare);
|
||||
procedure Sort(Compare: TListSortCompare; SortingAlgorithm: PSortingAlgorithm);
|
||||
property Capacity: Integer read GetCapacity write SetCapacity;
|
||||
property Count: Integer read GetCount write SetCount;
|
||||
property Items[Index: Integer]: Pointer read Get write Put; default;
|
||||
|
@ -774,6 +774,11 @@ begin
|
||||
FList.Sort(Compare);
|
||||
end;
|
||||
|
||||
procedure TList.Sort(Compare: TListSortCompare; SortingAlgorithm: PSortingAlgorithm);
|
||||
begin
|
||||
FList.Sort(Compare, SortingAlgorithm);
|
||||
end;
|
||||
|
||||
procedure TList.CopyMove (aList : TList);
|
||||
var r : integer;
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user