<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014-03-12 21:56 GMT+01:00 Jim Leonard <span dir="ltr"><<a href="mailto:trixter@oldskool.org" target="_blank">trixter@oldskool.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
On 3/12/2014 2:30 PM, Philippe wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Type<br>
TMethod = ( method_type_1, method_type_2, method_type_3);<br>
</blockquote>
<br>
Ah, clever -- create a Compare that switches based on what I tell it to do. I like that, but as far as I can tell there's no way to tell a TSortedCollection to "resort" -- it's kept sorted only through inserts and deletes.<span><font color="#888888"><br>
</font></span></blockquote></div><br></div>You (or the user) will never need to resotre the first order? I am asking because you could as well simply create one SortedCollection for each sort order and systematically insert each item in all those collections. The overhead would be in the initial loading, but then switching would be instantaneous. <br>
<div class="gmail_extra">
<br>-- <br>Frederic Da Vitoria<br>(davitof)<br><br>Membre de l'April - « promouvoir et défendre le logiciel libre » - <a href="http://www.april.org" target="_blank">http://www.april.org</a><br>
</div></div>