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

Jim Leonard trixter at oldskool.org
Thu Mar 13 15:49:11 CET 2014


On 3/12/2014 6:58 PM, Philippe wrote:
> you could
>
> - store the actual collection to a TMemoryStream,
>
> - destroy the collection,
>
> - Load then a new collect to be sort with different method ...

Yes, that's what I'm doing now for every re-sort.

I'll check the source and see if I can override any of the methods, but 
if not, it sounds like this is what I'll have to do unless I want to 
write my own custom data structure for this process.
-- 
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!



More information about the fpc-pascal mailing list