--- Begin Message ---
I created test case for desired behaviour:

  Gofer it
    url: 'https://dev.cvokhaus.cz/st-public/';
    package: 'CollectionGroupedByOrderTest';
    load.

pf


> Despite the interleavement, the order of the grouped elements as they
> occurred in the original collection could be preserved.
> 
> On Wed, Aug 15, 2018 at 6:34 AM, Damien Pollet <damien.pol...@gmail.com> 
> wrote:
> > The problem is, there isn't really an order to preserve in the first place,
> > since even if the original collection is a sequencable one, the elements of
> > each group would be interleaved in it. I could see the point of sorting the
> > keys though.
> >
> > On Tue, 14 Aug 2018 at 18:32, Petr Fischer via Pharo-dev
> > <pharo-dev@lists.pharo.org> wrote:
> >>
> >> Hello, I found a useful method in the collection - groupedBy: - the result
> >> container is some PlugableDictionary (integer variant) and group order
> >> (keys) is not preserved.
> >>
> >> Would not it be better to choose some other Dictionary variant, which
> >> preserve the order of groups (like in source Collection)?
> >>
> >> pf
> >>
> >
> >
> > --
> > Damien Pollet
> > type less, do more [ | ] http://people.untyped.org/damien.pollet
> 


--- End Message ---

Reply via email to