Lukas Renggli wrote:
> PRTreeView display sub items using the order of the children
> A dictionary has no order, therefore items are shuffled. I would
> like to
> have sub items in the order in which I added them or, better, having a
> component to let me give my order.
> What is the best solution ?
Load the latest version of Pier, I fixed that yesterday :-)
What a synchronisation :-)
> I thought of a 'priority' property for structures. This
> would then be used to sort the elements.
The enhanced children visitor would allow to do exactly that. You
just have to redefine the default sort-block in the default context
used for new sessions.
Ok, but I need something to base the order on if I want to sort by
creation time for exemple. In this case, I would need to modify
ChildrenDecoration>>#add: to add an index, or Structure>>initialize to
add a timestamp property. What do you think ?