[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Classes' (#rtl)

# TStringList.SortStyle

Sort style for strings

## Declaration

Source position: classesh.inc line 870

`public property TStringList.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

TStringsSortStyle |  | Determines how the strings are sorted
TStrings.Sorted

Documentation generated on: May 14 2021