Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSCommon > RSGenerics.Collections > Classes > TStringList<T> > Methods

TStringList<T>.Sort(TStringListSortCompare) Method

Scroll Prev Top Next More

Sorts the strings in the list in a customized order.

Use Sort to sort the strings in the list, where the sort order is defined by the Compare parameter.

Supply a value for the Compare function that compares two strings in the string list. The List parameter provides access to the string list, while the Index1 and Index2 parameters identify the strings to be compared.

Do not pass nil (Delphi) or NULL (C++) as the value of the Compare parameter.

noteNote

You must explicitly call the Sort method. Setting the Sorted property only sorts strings using ANSI (Windows) or UTF-8 (Linux) order, as implemented in the    Sort method.

Namespace: RSGenerics.Collections

Parameters

Compare

Type: TStringListSortCompare

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb