Skip to main content

TdxCustomListView.CustomSort(TdxListViewCompareProc,TdxNativeInt) Method

Custom sorts items.

Declaration

function CustomSort(ASortProc: TdxListViewCompareProc; AData: TdxNativeInt): Boolean;

Parameters

Name Type Description
ASortProc TdxListViewCompareProc

A custom comparison routine.

AData TdxNativeInt

Specifies a pointer to additional data for the custom comparison routine.

Returns

Type Description
Boolean

True if the sort operation is successful; otherwise, False.

Remarks

You can handle the List View’s OnCompare event to implement a custom item sorting algorithm.

See Also