Unit 'Classes' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TList.Sort

Sorts the pointers in the list.

Declaration

Source position: classesh.inc line 628

public procedure TList.Sort(

  Compare: TListSortCompare

);

procedure TList.Sort(

  Compare: TListSortCompare;

  SortingAlgorithm: PSortingAlgorithm

);

procedure TList.Sort(

  Compare: TListSortComparer_Context;

  Context: Pointer

);

procedure TList.Sort(

  Compare: TListSortComparer_Context;

  Context: Pointer;

  SortingAlgorithm: PSortingAlgorithm

);

Description

Sort> sorts the pointers 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.


Documentation generated on: Dec 27 2024