Vcl.ListActns.TListControlItems.Sort
Delphi
procedure Sort;
C++
HIDESBASE void __fastcall Sort();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.ListActns.pas Vcl.ListActns.hpp |
Vcl.ListActns | TListControlItems |
Description
Sorts the items in the collection.
Call Sort to sort the items in the collection. Sort uses the comparison function specified by the protected CompareItems method to determine the sort order.
Note: Sort sorts the items in the list, but does not maintain the sort order when new items are added. To impose a sort order that persists when new items are added, set the SortType property to a value other than stNone and, if desired, supply an OnCompare event handler.