"Peter Bengtsson" <peter at fry-it.com> writes: >>>> pprint(sorted(d.items())) > [('age', 28), > ('name', 'peter'), > ('name_of_something', 'Foo'), > ('this', 'is really long')] > > That way the order is guaranteed. I think that "pprint" already sorts. -- Brandon Craig Rhodes brandon at rhodesmill.org http://rhodesmill.org/brandon