RAD Studio VCL Reference
|
Sorts the items in the collection using a specified comparison function.
procedure CustomSort(Compare: TListItemsCompare);
__fastcall CustomSort(TListItemsCompare Compare);
Call Sort to sort the items in the collection based on the comparison function that is the value of the Compare parameter.
Compare is a function that compares two items in the list. Its List parameter is this TListControlItems object. The Index1 and Index2 parameters are the indexes of the items to compare in the Items property array. This comparison function should return a value less than 0 if the first item is less than the second, a value greater than 0 if it is greater than the second, and 0 if the two items are equivalent.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|