[fpc-pascal] Elegant way to switch sort mechanism in TSortedCollection?

Yann Mérignac yann.merignac at gmail.com
Fri Mar 14 12:03:48 CET 2014


Depending on the number of possible sort orders, may be it is better to
have one collection by possible sort order and to permanently keep the
collections sorted.


2014-03-13 22:26 GMT+01:00 Jim Leonard <trixter at oldskool.org>:

> On 3/13/2014 3:49 PM, Frederic Da Vitoria wrote:
>
>> You are sorting only for display purposes?
>>
>
> No, re-sorting is part of the algorithm, which sorts a list of graphics
> elements and then inserts/splits/deletes the collection entries, and then
> repeats this process.  The sort method can change each iteration depending
> on the number and status of the entries.
>
> --
> Jim Leonard (trixter at oldskool.org)
> Check out some trippy MindCandy: http://www.mindcandydvd.com/
> A child borne of the home computer wars: http://trixter.oldskool.org/
> You're all insane and trying to steal my magic bag!
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140314/94fc8c09/attachment.html>


More information about the fpc-pascal mailing list