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

--Bart


>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
>
>Hi,
>
>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 ?
>
>Micha
>_______________________________________________
>fpc-devel maillist  -  fpc-devel at lists.freepascal.org
>http://lists.freepascal.org/mailman/listinfo/fpc-devel

_________________________________________________________________
Windows Live Messenger: gratis bellen van PC naar PC 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=nl-nl




More information about the fpc-devel mailing list