stringlistcontainer Sorted property
Return to Introduction  Previous page  Next page
Applies to
acStringListContainer component.  

Declaration
property Sorted: Boolean; // False by default  

Description
The Sorted property specifies whether the strings in the list should be automatically sorted.  
 
Set Sorted to True to cause the strings in the list to be automatically sorted in ascending order. Set Sorted to False to allow strings to remain where they are inserted. When Sorted is False, the strings in the list can be put in ascending order at any time by calling the Sort method.  
 
When Sorted is True, do not use Insert to add strings to the list. Instead, use Add, which will insert the new strings in the appropriate position. When Sorted is False, use Insert to add strings to an arbitrary position in the list, or Add to add strings to the end of the list.  

See also
Duplicates, Strings, Names and Values properties;  
Add, AddStrings and Sort methods.