System.Classes.TList.Sort
Delphi
procedure Sort(Compare: TListSortCompare);
C++
void __fastcall Sort(TListSortCompare Compare);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Classes.pas System.Classes.hpp |
System.Classes | TList |
Description
Performs a QuickSort on the list based on the comparison function Compare.
Call Sort to sort the items in the Items array. Compare is a comparison function that indicates how the items are to be ordered.
Note: Local functions on Win64 involve an extra hidden parameter. Therefore, local functions and procedures are not suitable for use with TList.Sort and similar methods requiring parameters representing procedure references.
See Also
Code Examples