Unit 'fgl' Package
[Overview][Constants][Types][Classes][Index] [#rtl]

TFPSList.Sort

Sort the list.

Declaration

Source position: fgl.pp line 94

public procedure TFPSList.Sort(

  Compare: TFPSListCompareFunc

);

procedure TFPSList.Sort(

  Compare: TFPSListCompareFunc;

  SortingAlgorithm: PSortingAlgorithm

);

Arguments

Compare

  

Function to compare 2 items in the list.

Arguments

Compare

  

Function to compare 2 items in the list.

Description

Sort> sorts the items in the list. Two pointers are compared by passing them to the Compare function. The result of this function determines how the pointers will be sorted:

The sort is done using a quicksort algorithm.

See also

TFPSListCompareFunc

  

Compare list items callback signature.


Documentation generated on: Dec 26 2024