[squeak-dev] object explorer - sorting keys in dictionaries

Chris Cunningham cunningham.cb at gmail.com
Thu Apr 18 21:42:57 UTC 2019


Thank you, that's what I'm looing for.
-cbc

On Thu, Apr 18, 2019 at 11:46 AM H. Hirzel <hannes.hirzel at gmail.com> wrote:

> Hi Chris
>
> I think you might want to have a look at the implementors of
>
>    explorerContents
>
>
> Dictionary has
>
> explorerContents
>
>         ^self keysSortedSafely replace: [ :key |
>                 ObjectExplorerWrapper
>                         with: (self at: key)
>                         name: (key printString contractTo: 32)
>                         model: self ]
>
>
> Regards
> Hannes
>
> On 4/18/19, Chris Cunningham <cunningham.cb at gmail.com> wrote:
> > Hi.  I have objects that I want to explore with Dates as keys.
> > ObjectExplorer seems to want to sort these by the string representation
> of
> > the dates instead of the natural sorting of the dates
> > [image: image.png]
> >
> > Could someone point me to where the building of this list is going on?
> Once
> > I have a pointer, I can try various other options to find something I
> like.
> >
> > Thanks,
> > cbc
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20190418/a48e9496/attachment.html>


More information about the Squeak-dev mailing list