TListControlItems.DoCustomSort function
Performs the comparison for the CustomSort method.
Declaration
function DoCustomSort(AItem1: TListControlItem;
AItem2: TListControlItem): IntegerDescription
DoCustomSort is an
Integer function which performs the
comparison for the CustomSort method. Arguments passed to the method contain
the
TListControlItem instances compared in the method.
DoCustomSort calls the TListItemsCompare routine passed as an
argument to the CustomSort method.
The return value contains the relative sort order for the items compared in the method. For example:
- <0
- Item1 comes before Item2 using the custom sort.
- 0
- Item1 and Item2 have the same value in the custom sort.
- >0
- Item1 comes after Item2 in the custom sort.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
