[Zope] What If i don't want Zope sorting for me.

Chris Withers chrisw@nipltd.com
Tue, 26 Feb 2002 10:04:35 +0000


Terry wrote:
> 
> ['ar_sbhdtease', 'ar_sbhdbody', 'ar_body', 'ar_id', 'ar_head', 'ar_byline']
> 
> #######
> It just forget the original order I just defined. Any idea ?

Terry, you don't read to good, especially Harry's post ;-)

python dictionaries have no notion of order in their keys.

If you need the keys of a dictionary to stay ordered, then you need to keep them
in a seperate list and use that for ordering.

cheers,

Chris