Sort dictionary data
Marcus Laranjeira
m.laranjeira at datacraft.com.br
Mon May 20 14:10:32 EDT 2002
All,
I have a dictionary that I need to be sorted. the current structure is :
dic { 'aaa', 1, 'bbb', 1, 'ccc', 3, 'ddd', 2, 'eee', 1}
and I need this to be sorted and the final dictionary should be:
dic { 'aaa', 1, 'bbb', 1, 'eee', 1, 'ddd', 2, 'ccc', 3}
does anyone knows how can this be done ? Is there any ready module to do
such sorting ?
Thanks in advance,
Marcus
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.360 / Virus Database: 199 - Release Date: 07/05/02
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20020520/c86b4e09/attachment.html>
More information about the Python-list
mailing list