System.Classes.TList.Sort

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Sort(Compare: TListSortCompare);

C++

void __fastcall Sort(TListSortCompare Compare);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Classes.pas
System.Classes.hpp
System.Classes TList

Description

Performs a QuickSort on the list based on the comparison function Compare.

Call Sort to sort the items in the Items array. Compare is a comparison function that indicates how the items are to be ordered.

See Also

Code Examples