Sign in Join
FPDoc Onlineexperiment

TStringList.Sorted property

Member of TStringListpublicIn unit Classes

Determines whether the list is sorted or not.

Declaration

pascal
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.

  1. When Sorted is True, Insert cannot be used. For sorted lists, Add should be used instead.
  2. If Sorted is True, the Duplicates setting has effect. This setting is ignored when Sorted is False.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.