[fpc-devel] TStringList.CustomSort

Bart van den Broek bart_van_den_broek at hotmail.com
Tue Nov 7 09:52:37 CET 2006

Why not add an overloaded CustomSort method that accepts the compare 
function that you like.


>From: Micha Nelissen <micha at neli.hopto.org>
>Reply-To: FPC developers' list <fpc-devel at lists.freepascal.org>
>To: FPC developers' list <fpc-devel at lists.freepascal.org>
>Subject: [fpc-devel] TStringList.CustomSort
>Date: Mon, 06 Nov 2006 23:21:54 +0100
>Does anyone use the CustomSort facility of TStringList ? I am a bit
>troubled because it's broken by design it seems. You can sort the list
>with it, but searching/adding will not work properly (or be linear). I
>want to have a callback that gives you two strings to compare, instead
>of two indexes which you have to fetch anyway from the list, first.
>Thoughts ?
>fpc-devel maillist  -  fpc-devel at lists.freepascal.org

Windows Live Messenger: gratis bellen van PC naar PC 

More information about the fpc-devel mailing list