+100 On Mon, Jun 19, 2017 at 2:14 PM, Gabriel Cotelli <[email protected]> wrote:
> You can do anything in the collect block, so the returned objects possibly > cannot be sorted, and even if it can be sorted maybe the sort block is not > compatible. > > On Mon, Jun 19, 2017 at 6:04 AM, Denis Kudriashov <[email protected]> > wrote: > >> Hi. >> >> I just found that >> >> >> #() asSortedCollection select: [ ] => SortedCollection >> #() asSortedCollection collect: [ ] => OrderedCollection >> >> >> It feels like a bug to me. But maybe there is a reason why sorted >> collection collects items as OrderedCollection instead of original kind of >> sort? >> >> My usercase was copy of object with sorted collection inside. For this I >> just manually collect copy of each item. But at the end my copy became >> broken because of sort was important for domain logic. >> >> Best regards, >> Denis >> > >
