Sign in Join
FPDoc Onlineexperiment

TStringList.SortStyle property

Member of TStringListpublicIn unit Classes

Sort style for strings.

Declaration

pascal
property SortStyle: TStringsSortStyle read FSortStyle write SetSortStyle;

Description

SortStyle sets the sort style for the TStringList instance. Setting it to sslAuto will keep the list sorted automatically at all times.

Find (and hence IndexOf) will use a binary search if SortStyle differs from sslNone. if SortStyle is sslNone, then it will raise an exception.

See also

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