<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font size="-2">On Wed, 26 Dec 2018, Franz Müller wrote:
<br>
<br>
</font>
<blockquote type="cite" style="color: #000000;"><font size="-2">In
the current implementation of TStringlist, there is a property
SortStyle, which is somewhat similar to the property Sorted.
However, it is different from sorted in that it allows 3 values:
sslnone, which corresponds to sorted=false, sslAuto, which
corresponds to sorted=true, and sslUser, which correspnds to
????
<br>
</font>
<font size="-2"><br>
This third value introduces some inconsistency. If the user is
responsible for sorting, as is written in the documentation,
this must be meant to be done by caling customsort - otherwise
it would make absolutey no sense to leave sorting to the user.
<br>
</font></blockquote>
<font size="-2">
<br>
Not correct, it is meant for the cases when the user knows the
list is sorted.
<br>
<br>
</font>
<blockquote type="cite" style="color: #000000;"><font size="-2">And
in addition the procedures used for comparing auto-sorted
procedures are local to the Stringlist unit, so the application
programmer would not even be able to use these methods for
sorting himself.
<br>
</font></blockquote>
<font size="-2">
<br>
No, because you can load data from an already sorted file. Then it
makes no sense to sort again.
<br>
<br>
</font>
<p><font size="-2">Michael.<br>
</font></p>
<p>Ok, then I understand the meaning of sslUser. In that case,
however, the documentation is somewhat misleading or at least
ambiguous. It should state clearly that lists in which a user
defined customsort has been called have to keep SortStyle=sslNone
and that sslUser is not meant for such custom sorted lists.</p>
<p>Franz<br>
</p>
<p><br>
</p>
<p><br>
</p>
</body>
</html>