RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWideStringList.Sort Method

Sorts the strings in the list in ascending order.

Pascal
procedure Sort; virtual;
C++
virtual __fastcall Sort();

Call Sort to sort the strings in a list that has the Sorted property set to false. String lists with the Sorted property set to true are automatically sorted.

Note: Sort uses WideCompareStr to sort the strings when CaseSensitive is true and WideCompareText when CaseSensitive is false. To provide your own comparison operator instead, use the CustomSort method.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!