TStringList.Sorted property
Determines whether the list is sorted or not.
Declaration
property Sorted: Boolean read GetSorted write SetSorted;Description
Sorted can be set to
True in order to cause the list
of strings to be sorted. Further additions to the list will be inserted at
the correct position so the list remains sorted at all times. Setting the
property to
False has no immediate effect, but will allow strings
to be inserted at any position.
- When
SortedisTrue, Insert cannot be used. For sorted lists, Add should be used instead. - If
SortedisTrue, the Duplicates setting has effect. This setting is ignored whenSortedisFalse.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
