<div>Hi, today I found this:</div><div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">a := Object new -&gt; 1.<br>b := Object new -&gt; 2.<br>c := Object new -&gt; 3.<br>

d := Object new -&gt; 4.<br><br>ss := {a. b. c.} asSortedCollection: [:a :b | a value &lt; b value].</blockquote>
<div><br></div><div>So far, it evaluates nicely, but when I try to do the following</div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><br>ss , {d}</blockquote><div>

<br></div><div>I get: Object doesNotUnderstand: &lt;</div><div><br></div><div>Perhaps this is something you don&#39;t usually do with SortedCollections but I don&#39;t know. I believe the problem is that OrderedCollection&#39;s implementation of #copyReplaceFrom:to:with: creates a new collection without passing it the sortBlock. It can be easily fixed by overriding this method in SortedCollection and duplicating the code but I think it&#39;s ugly.</div>

<div>What do you think?</div><div><br></div>