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 <
[email protected]> 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

Reply via email to