RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TListControlItems.Sort Method

Sorts the items in the collection.

Pascal
procedure Sort;
C++
__fastcall Sort();

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.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!