<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 -> 1.<br>b := Object new -> 2.<br>c := Object new -> 3.<br>
d := Object new -> 4.<br><br>ss := {a. b. c.} asSortedCollection: [:a :b | a value < 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: <</div><div><br></div><div>Perhaps this is something you don't usually do with SortedCollections but I don't know. I believe the problem is that OrderedCollection'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's ugly.</div>
<div>What do you think?</div><div><br></div>