[Seaside] Displaying items from a dictionary collection in a given order?

Sean Allen sean at monkeysnatchbanana.com
Sat Oct 23 19:31:00 UTC 2010


No.

A Dictionary is by definition unordered. If you want to order the keys, you
have to get them and order them based on your rules.

On Sat, Oct 23, 2010 at 2:12 PM, Gilles Schtickzelle <gschtick at gmail.com>wrote:

> Hello,
>
> I have a seaside component that I use to display a list of items pulled
> from a dictionary.
> They appear to be in random order and I'd like to have them displayed in
> alphabetical or reverse alphabetical order.
> I don't really want to have an intermediary orderedCollection that I would
> display instead, as I would like to add to and delete items from the
> dictionary directly and see the changes in the component without having to
> repopulate the intermediary collection.
>
> Is that any way to do that?
>
> Thanks,
> Gilles
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20101023/53552b81/attachment-0001.htm


More information about the seaside mailing list